-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
Cleanup ephemeral wheel cache properly #968
Conversation
045c854
to
fd8b573
Compare
Codecov Report
@@ Coverage Diff @@
## master #968 +/- ##
==========================================
+ Coverage 99.1% 99.11% +<.01%
==========================================
Files 34 34
Lines 2357 2362 +5
Branches 305 306 +1
==========================================
+ Hits 2336 2341 +5
Misses 11 11
Partials 10 10
Continue to review full report at Codecov.
|
d830e8b
to
0e3ef2c
Compare
Attribute `self.wheel_cache` has been removed in f6de247, thus `self.wheel_cache.cleanup()` will allways throw the AttributeError and `wheel_cache.cleanup()` will never be called as supposed to be. WheelCache.cleanup() has been introduced in `pip==10.0.0`. It's better to check pip version explicitly (LBYL) rather than ask for forgiveness (EAFP).
0e3ef2c
to
40d74a6
Compare
ℹ️ rebased onto master and resolved conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
@webknjaz, @codingjoe and @suutari, thanks for reviewing this! 🙏 |
Attribute
self.wheel_cache
has been removed in f6de247, thusself.wheel_cache.cleanup()
will allways throw:and
wheel_cache.cleanup()
will never be called as supposed to be.WheelCache.cleanup() has been introduced in
pip==10.0.0
. Try-except block has been refactored, for it's better to check the pip version explicitly (LBYL) rather than ask for forgiveness (EAFP).Changelog-friendly one-liner: Fix dependency resolver to clean up the ephemeral wheel cache.
Contributor checklist