[MacPorts] #65109: py-build, py-bootstrap-modules: breaks use of trace-mode
MacPorts
noreply at macports.org
Tue May 3 18:47:48 UTC 2022
#65109: py-build,py-bootstrap-modules: breaks use of trace-mode
-------------------------+-------------------------------------------
Reporter: reneeotten | Owner: jmroot
Type: enhancement | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Keywords: | Port: py-build py-bootstrap-modules
-------------------------+-------------------------------------------
For Python ports that use `python.pep517 yes` one cannot use trace-mode at
this moment. Builds will all fail when either `colorama` or `importlib-
metadata` are installed.
1. {{{AttributeError: module 'colorama' has no attribute 'init'}}}
The `colorama` package is only required on Windows, but do to the way it
checks for the presence of the package it causes a failure in trace-mode.
This is easily fixed by just patching out the use of `colorama` in
`build-0.7.0/src/build/__main__.py`.
2. {{{AttributeError: module 'importlib_metadata' has no attribute
'MetadataPathFinder'}}}
This is likely due to how `setuptools` checks whether the
`importlib_metadata` package is available... an "easy" but not really
correct way would be to just add the `pyXY-importlib-metadata` as a build
dependency or investigate further on how this can be avoided in `py-
build`.
I am happy to try and fix building using `pep517` in trace-mode, but first
wanted to get some opinions before spending time on it.
--
Ticket URL: <https://trac.macports.org/ticket/65109>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list