[MacPorts] #68466: py27-bcrypt @3.1.7, py27-cffi @1.16.0: This CFFI feature requires setuptools on Python >= 3.12. The setuptools module is missing or non-functional.

MacPorts noreply at macports.org
Sat Oct 14 14:47:37 UTC 2023


#68466: py27-bcrypt @3.1.7, py27-cffi @1.16.0: This CFFI feature requires
setuptools on Python >= 3.12. The setuptools module is missing or non-
functional.
---------------------------+-----------------------------------
 Reporter:  ryandesign     |      Owner:  (none)
     Type:  defect         |     Status:  new
 Priority:  Normal         |  Milestone:
Component:  ports          |    Version:  2.8.1
 Keywords:  sonoma x86_64  |       Port:  py27-bcrypt py27-cffi
---------------------------+-----------------------------------
 py27-bcrypt @3.1.7 fails to build from source for me on macOS Sonoma
 x86_64:

 {{{
 Traceback (most recent call last):
   File "setup.py", line 240, in <module>
     **keywords_with_side_effects(sys.argv)
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/setuptools/__init__.py", line 162, in setup
     return distutils.core.setup(**attrs)
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",
 line 111, in setup
     _setup_distribution = dist = klass(attrs)
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/setuptools/dist.py", line 448, in __init__
     k: v for k, v in attrs.items()
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",
 line 287, in __init__
     self.finalize_options()
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/setuptools/dist.py", line 740, in finalize_options
     ep(self)
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/setuptools/dist.py", line 747, in _finalize_setup_keywords
     ep.load()(self, ep.name, value)
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/cffi/setuptools_ext.py", line 216, in cffi_modules
     add_cffi_module(dist, cffi_module)
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/cffi/setuptools_ext.py", line 71, in add_cffi_module
     _add_c_module(dist, ffi, module_name, source, source_extension, kwds)
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/cffi/setuptools_ext.py", line 109, in _add_c_module
     from cffi._shimmed_dist_utils import Extension, log, mkpath
   File
 "/opt/bblocal/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/cffi/_shimmed_dist_utils.py", line 16
     raise Exception("This CFFI feature requires setuptools on Python >=
 3.12. The setuptools module is missing or non-functional.") from ex
 ^
 SyntaxError: invalid syntax
 }}}

 I don't know why the error message (which comes from py27-cffi) mentions
 "Python >= 3.12"; this is Python 2.7. The file the error message is in is
 new in py27-cffi @1.16.0. Installing py27-cffi @1.15.1 works around the
 problem.

 This issue came up for me today when trying to set up a macOS Sonoma
 buildbot worker since these ports are in the dependency chain for
 buildbot-slave-0.8. For now I will copy the old py-cffi @1.15.1 Portfile
 and files directory into the private ports collection that I use for the
 buildbot machines.

-- 
Ticket URL: <https://trac.macports.org/ticket/68466>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list