[MacPorts] #68620: py27-pynacl @1.4.0_1: SyntaxError: invalid syntax

MacPorts noreply at macports.org
Thu Nov 2 02:18:07 UTC 2023


#68620: py27-pynacl @1.4.0_1: SyntaxError: invalid syntax
-------------------------+-------------------------
 Reporter:  cooljeanius  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.8.1
 Keywords:               |       Port:  py27-pynacl
-------------------------+-------------------------
 Attempting to upgrade py27-pynacl results in the following error:
 {{{
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 pynacl/py27-pynacl/work/PyNaCl-1.4.0" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 setup.py --no-user-cfg build
 DEBUG: system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 pynacl/py27-pynacl/work/PyNaCl-1.4.0" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 setup.py --no-user-cfg build
 Traceback (most recent call last):
   File "setup.py", line 264, in <module>
     "Programming Language :: Python :: 3.8",
   File
 "/opt/local/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/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py",
 line 111, in setup
     _setup_distribution = dist = klass(attrs)
   File
 "/opt/local/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/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py",
 line 287, in __init__
     self.finalize_options()
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/setuptools/dist.py", line 740, in finalize_options
     ep(self)
   File
 "/opt/local/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/local/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/local/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/local/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/local/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
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_python_py-
 pynacl/py27-pynacl/work/PyNaCl-1.4.0" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
 setup.py --no-user-cfg build
 Exit code: 1
 Error: Failed to build py27-pynacl: command execution failed
 DEBUG: Error code: CHILDSTATUS 2757 1
 DEBUG: Backtrace: command execution failed
     while executing
 "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
     invoked from within
 "command_exec -callback portprogress::target_progress_callback build"
     (procedure "portbuild::build_main" line 8)
     invoked from within
 "$procedure $targetname"
 }}}
 I'm on x86_64 Big Sur with Xcode 13.

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


More information about the macports-tickets mailing list