-
Notifications
You must be signed in to change notification settings - Fork 152
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
Latest wheel breaks with setuptools #487
Comments
The only change between 0.38.1 and 0.38.2 is the regression fix for the wheel file name parsing regex. Nothing that would cause a lookup error for |
How do I minimally reproduce this? |
Sorry, I mean 0.37.1. I've been able to reproduce this with deploying a stock Ubuntu Focal VM. Then these commands:
Check out
This fails. But if I use I'll try see if there's a more minimal way to do so tomorrow. Thanks for your time, much appreciated. |
Can this be reproduced w/o charmcraft? The biggest change between 0.37.1 and 0.38.0 was that wheel uses setuptools instead of distutils. Could this be related? |
Let me get back to you on a way to reproduce it without charmcraft. It's late here where I'm in (Sydney, Australia) so will dig deeper tomorrow. It may be a circular dependency. In the meantime, would this traceback / error be useful to you somehow?
Directly calling |
It doesn't make sense. Clearly it's able to import |
Okay, here we go:
|
Tried the same in a Python 3.8 virtualenv:
|
Is that with a clean virtualenv?
|
Success if I drop the
I'm puzzled. I'll do some more digging. Again, appreciate your time! |
Yes, that was with a clean virtualenv. |
Hello! Thanks for opening the issue here about this problem. It's 100% reproducible in a clean virtual environment in Ubuntu Focal. |
How? I have a Ubuntu 22.04 installation and I can't reproduce it:
|
Oh, Focal is the code name for the older LTS version, 20.04. |
A-ha, I was able to repro the issue with the |
Yes, sorry! Ubuntu 20.04. The problem does not happen in Ubuntu 22.04 because setuptools there is "modern enough" to know how to deal with latest wheel changes. |
I found that I can't even do |
Strangely, if I remove the |
Did some further testing. Whenever |
So, As a side note, I checked if Ubuntu 18.04 (which should still be supported) can install wheel with |
Thank you @agronholm ! |
`setuptools.command.build` was introduced since 62.4.0 (see pypa/wheel#487 (comment)), which require Python >= 3.7. Fixes https://pagure.io/python-daemon/issue/74
Hi,
The latest wheel seems to break with setuptools in some weird and wonderful way. Downgrading to 0.38.1 seems to work fine.
Any ideas what's going on?
The text was updated successfully, but these errors were encountered: