overfl0 / piptester

2 stars 0 forks source link

Check for termcolor issues #2

Open overfl0 opened 2 years ago

overfl0 commented 2 years ago

Probably has something to do with the ._pth file

overfl0 commented 2 years ago

Termcolor does from termcolor import VERSION which imports a file relative to setup.py. This does not work when ._pth is present because pip spawns a subprocess and (ironically) that makes the subprocess be spawned in isolated mode as well (as it should!)

References:

https://github.com/pypa/pip/blob/1cda23bd6bd0066ad557e4f7ca7c670744357b2b/src/pip/_internal/utils/setuptools_build.py#L64

https://peps.python.org/pep-0517/#appendix-a-comparison-to-pep-516