nvda
8caf17cf - Use an older version of setuptools when installing requirements (#16587)

Commit
1 year ago
Use an older version of setuptools when installing requirements (#16587) Summary of the issue: setuptools has been updated, breaking support with py2exe: py2exe/py2exe#208. When installing packages, pip automatically pulls in the latest build dependences as specified in PEP 518. pip creates a custom temporary build environment to install packages using the latest pip environment. Description of development approach Create a pyproject.toml to specify the build environment we are using. packaging.python.org/en/latest/guides/writing-pyproject-toml Use the flag no-build-isolation when installing requirements.txt. This prevent pip from using the custom build environment and automatically pulling the latest setuptools when installing packages. As such, we need to manually install the desired version of setuptools, and manually install pip's dependency wheel. stackoverflow.com/questions/62889093/what-does-no-build-isolation-do
Author
Parents
Loading