Opened 6 months ago

Closed 6 months ago

Last modified 4 months ago

#70106 closed defect (wontfix)

py312-setuptools build fails if any installed setuptools plugin fails to import

Reported by: MStraeten (Martin Straeten) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: upstream Cc:
Port: py-setuptools

Description (last modified by jmroot (Joshua Root))

:info:build ERROR Backend subprocess exited when trying to invoke build_wheel
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_ma
cports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-setu
ptools/py312-setuptools/work/setuptools-70.0.0" && /opt/local/Library/Frameworks
/Python.framework/Versions/3.12/bin/python3.12 -m build --no-isolation --wheel -
-outdir /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macp
orts.org_macports_release_tarballs_ports_python_py-setuptools/py312-setuptools/w
ork --skip-dependency-check
:info:build Exit code: 1

Attachments (1)

main.log (14.0 KB) - added by MStraeten (Martin Straeten) 6 months ago.

Download all attachments as: .zip

Change History (5)

Changed 6 months ago by MStraeten (Martin Straeten)

Attachment: main.log added

comment:1 Changed 6 months ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: python312 setuptools removed
Owner: set to jmroot
Port: py-setuptools added; py312-setuptools removed
Status: newaccepted
:info:build   File "/opt/local/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/py2app/recipes/matplotlib.py", line 5, in <module>
:info:build     from pkg_resources import packaging
:info:build ImportError: cannot import name 'packaging' from 'pkg_resources' (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-setuptools/py312-setuptools/work/setuptools-70.0.0/pkg_resources/__init__.py)

I guess it's scanning all installed packages for some reason, and fails if any one of them fails to import, which the outdated version of py2app does. If you can't just use the prebuilt archive for some reason, try deactivating py312-py2app before upgrading setuptools?

comment:2 Changed 6 months ago by MStraeten (Martin Straeten)

thanks, that works

comment:3 Changed 6 months ago by jmroot (Joshua Root)

Keywords: upstream added
Resolution: wontfix
Status: acceptedclosed
Summary: py312-setuptools upgrade failspy312-setuptools build fails if any installed module fails to import

I guess this is a variation of this long-standing upstream setuptools bug: https://github.com/pypa/setuptools/issues/617

comment:4 Changed 4 months ago by jmroot (Joshua Root)

Summary: py312-setuptools build fails if any installed module fails to importpy312-setuptools build fails if any installed setuptools plugin fails to import

Actually it looks like this is the specific upstream issue for this one: https://github.com/pypa/setuptools/issues/4417

Note: See TracTickets for help on using tickets.