New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] setuptools/command/install_scripts.py line 2 bug #2945
Comments
FWIW, import distutils.command.install_scripts as orig to: from distutils.command import install_scripts as orig allowed the build from source of the latest PySide6 against Qt-6.2.2 to ibuild and install properly on Python 3.8.3 Not sure if this issue only happens on Python 3.8.3 or not. |
Thanks for the report. The error you're reporting can't be as simple as invalid syntax. If it were, then the issue could be readily replicated and many others would be reporting the issue. It might be helpful to know what commands you ran and what error message was reported (in addition to the traceback). But what's more important is to try to ascertain why it's failing in your environment and not others. When did this issue start? Does the error occur with other versions of Setuptools? The latest version of Setuptools (60) was a backward-incompatible release with instructions on how to opt out by setting SETUPTOOLS_USE_DISTUTILS=stdlib in the environment. Does setting that value help? |
Used pip3 to upgrade setuptools, got version 60.0. Followed PySide6 build instructions. Since the issue is in distutils my guess it is related to your recent changes in 60.0 which introduced the internal distutils. Since this in invoked deep in the PySide6 setup.py build proceess and since your 60.0 release is very very recent, the qt PySide6 build process probably did not know about or use SETUPTOOLS_USE_DISTUTILS=stdlib option. I assume pip3 should probably not be installing versions of setuptools with breaking changes. So this should eventually iron itself out. I will close this as it is probably a one-off situation. |
Seems a race of some sort has been worked around by Qt for its PySide6 build on macOS that I ran into above. See https://bugreports.qt.io/browse/PYSIDE-1760 for this change: |
setuptools version
latest
Python version
Python 3.8.3
OS
MacOS
Additional environment information
No response
Description
Trying to build PySide6 from source on macOS with Qt 6.2.2 and install fails as follows:
That import failed.
In internal distutils install_scripts.py is its own module and not a directory,and given your module is called install_scripts.py as well, I think that line should be:
from distutils.command import install_scripts as orig
Expected behavior
setuptools/command/install_scripts.py should not fail trying to import install_scripts from distutils
How to Reproduce
See above.
Output
See above
Code of Conduct
The text was updated successfully, but these errors were encountered: