-
Notifications
You must be signed in to change notification settings - Fork 747
Safe wheel import #905
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
Safe wheel import #905
Conversation
Can you check whether it suffices to drop the filter in the |
Isn't the |
Codecov Report
@@ Coverage Diff @@
## master #905 +/- ##
==========================================
- Coverage 76.35% 76.25% -0.11%
==========================================
Files 65 65
Lines 6023 6030 +7
Branches 990 990
==========================================
- Hits 4599 4598 -1
- Misses 1090 1099 +9
+ Partials 334 333 -1
Continue to review full report at Codecov.
|
Yeah, I got a bit confused because I stumbled over this recently when testing something on a Linux machine where Anyways, thank you very much for your contribution :) |
Thanks for the speedy review! What's the process for requesting a minor version bump/release? Is there anything I could help with? |
There is no process as of now. I'll have a look whether I can do a quick 2.4.1 this month, there were a few improvements over 2.4.0 already. |
Great, thank you! |
@filmor any update on whether a 2.4.1 release is possible? Thanks! |
Only allow wheel commands if wheel is installed
What does this implement/fix? Explain your changes.
I upgraded from
2.3.0
to2.4.0
today, which seems to include the addition of awheel
import in thesetup.py
file. I am trying to install my own package that includespythonnet
on a machine that does not typically havewheel
installed, therefore, I have to includewheel
in myinstall_requires
file. The line looks like this, note that I have putwheel
first to install it beforepythonnet
:Unfortunately, this still fails due to pip collecting all the packages first, which calls
python setup.py egg_info
forpythonnet
, beforewheel
is installed (which occurs after all package collection is complete):To resolve this, I put the
wheel
import inside of a try/except, so that it doesn't fail while collecting the package, and would only fail if I tried to callbdist_wheel
if I didn't havewheel
installed.Here's an example of another
setup.py
file that also try/excepts around the import ofwheel
when setting up thecmdclass
dictionary.And a blog post that describes a similar try/except pattern near the bottom.
...
Does this close any currently open issues?
No
...
Any other comments?
...
Checklist
Check all those that are applicable and complete.
AUTHORS
CHANGELOG