-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
"build/lib" Directory is not cleaned up on bdist_wheel #1871
Comments
I just want to emphasize your attention on this issue. Although I don't regularly do such things, I just spend several hours spread over three days because of this issue. I want to exclude test packages from source and wheel build. Source build worked fine. Wheel build includes test packages every time and I couldn't figure it out. I removed temporary files like It would be really great if |
This result lib folder got packed |
I've also wasted several hours with this issue, we need to ship different libraries for different platforms, and this behaviour was causing issues where the wrong libraries were included in the wrong wheels. If setuptools is happy to create a build/lib folder, then it absolutely should clear that folder before writing to it. Otherwise disambiguate different builds. The existing behaviour is unexpected and has caused issues for years with building and installing packages. |
Hi @da1910 , which version of setuptools are you using? Also, is there any chance you using Recently there were some improvements in terms of disambiguation for different platforms that might have improved this behaviour. |
Assuming that's a build-time environment variable, then no that's not set in my case. I'm currently using setuptools 62.1.0 for the process. I'm seeing a |
I believe that the recent changes will not still not automatically perform any clean (the caching situation is analogous to other build methodologies such as Instead, they will use a more refined directory naming using |
Not to mention that running |
The bdist_wheel command (and probably also other bdist* commands) could result in not-reproducible results:
This is especially problematic when transforming a module from a single python file to a directory (or vice versa). In this case both module implementations are delivered.
The text was updated successfully, but these errors were encountered: