[MacPorts] #66579: py310-cython @0.29.32: error: invalid command 'egg_info'

MacPorts noreply at macports.org
Thu Dec 29 05:04:07 UTC 2022


#66579: py310-cython @0.29.32: error: invalid command 'egg_info'
------------------------+---------------------------
  Reporter:  ronf       |      Owner:  stromnov
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.0
Resolution:             |   Keywords:  ventura arm64
      Port:  py-cython  |
------------------------+---------------------------

Comment (by ronf):

 Ok - I checked the setuptools directory, and definitely found some
 weirdness. For instance, __init.py__ didn't exist on my system even after
 a setuptools reinstall, but there was a file called
 __init__.py..mp_1648743825. That generally happens when multiple packages
 have found conflicts in which port owns a given file. Even after wiping
 out everything in
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/setuptools and doing a forced uninstall/reinstall, I'm
 still getting errors, though:

 I don't see anything about build_meta after manually cleaning out the
 setuptools site-packages dir. After that, "import setuptools.build_meta"
 worked on the original system, but the build is still failing, with the
 error about egg_info and some of the config options not being recognized:

 {{{
 :info:build
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown
 distribution option: 'python_requires'
 :info:build   warnings.warn(msg)
 :info:build
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown
 distribution option: 'zip_safe'
 :info:build   warnings.warn(msg)
 :info:build
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
 /site-packages/setuptools/_distutils/dist.py:265: UserWarning: Unknown
 distribution option: 'entry_points'
 :info:build   warnings.warn(msg)
 :info:build usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2
 [cmd2_opts] ...]
 :info:build    or: setup.py --help [cmd1 cmd2 ...]
 :info:build    or: setup.py --help-commands
 :info:build    or: setup.py cmd --help
 :info:build error: invalid command 'egg_info'
 :info:build ERROR Backend subprocess exited when trying to invoke
 get_requires_for_build_wheel
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-
 cython/py310-cython/work/Cython-0.29.32" &&
 /opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
 -m build --wheel --no-isolation --outdir
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_tarballs_ports_python_py-cython/py310-cython/work
 :info:build Exit code: 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66579#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list