-
Notifications
You must be signed in to change notification settings - Fork 2
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
cannot import name 'safer_name' from 'wheel.bdist_wheel' #3
Comments
How did you find that? Do you really have a |
Yes I do. On Archlinux's python-wheel 0.44.0-2
Another way to see it is listing the modules from the package wheel with:
which gives:
If you list the functions of wheel.bdist_wheel with :
You get:
But if you list the ones from wheel._bdist_wheel you get:
which includes the above mentioned safer_name function. A brief google of packages with leading underscores : Non-Public Modules |
ok, I guess we should not expect that function to be available. import pkg_resources
def safer_name(name):
return pkg_resources.safe_name(name).replace('-', '_') does that fix it for you, or are there other imports that are failing? |
Looks like this is a change in wheel 0.44, which started deprecating the bdist_wheel module. also ref: pypa/setuptools#4369 |
I think it should be fixed with 0be1ca2. |
electrum-ecc/setup.py
Line 14 in b2cde56
While trying to compile electrum-ecc on Archlinux I get this error.
I noted that the function safer_name is part of the module _bdist_wheel and NOT part of the module bdist_wheel as referenced in the above line.
The text was updated successfully, but these errors were encountered: