Skip to content
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._distutils.util.byte_compile indirect requires distutils #4164

Open
s-t-e-v-e-n-k opened this issue Dec 21, 2023 · 2 comments
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.

Comments

@s-t-e-v-e-n-k
Copy link
Contributor

setuptools version

setuptools==69.0.2

Python version

Python 3.12

OS

openSUSE Tumbleweed

Additional environment information

No response

Description

While trying to install setuptools itself, we fail due to no distutils. This may belong under https://github.com/pypa/setuptools/milestone/8

Expected behavior

Indirect byte compilation should succeed with Python 3.12.

How to Reproduce

python3.12 setup.py install --skip-build

Output

setup-py-install-failure.txt

@s-t-e-v-e-n-k s-t-e-v-e-n-k added bug Needs Triage Issues that need to be evaluated for severity and status. labels Dec 21, 2023
@bnavigator
Copy link

This is only relevant for deprecated setup.py builds. Proper PEP517 usage does not exhibit the failure.

@abravalheri
Copy link
Contributor

Ok, looks like a bootstrap issue...
Probably it would go away if we add a import setuptools at the top of the command used to compile the byte compilation...

I suppose if you add the --no-compile option, things install correctly too, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Needs Triage Issues that need to be evaluated for severity and status.
Projects
None yet
Development

No branches or pull requests

3 participants