-
Notifications
You must be signed in to change notification settings - Fork 222
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
Raise exception when Maven artifacts fail download in setup.py #80
Conversation
Tagging @pfifer for visibility. |
It appears the source branch isn't up to date with master. Could you pull master into your branch re-push the PR? |
@pfifer, sorry about that. We have a fork and it was out of date. Master is now merged. Thanks! |
@pfifer, would you mind taking another look? Thanks! |
Does this cause pip to stop the installation when the download fails? |
So, a pip install of the dependency directly does in fact fail, which is the desired behavior. This is what I was testing originally, but I noticed upon closer inspection, a pip install with a requirements file does not fail. I'm looking into the difference between the following: // pip install direct dependency fails correctly // pip requirements file does not fail This is probably something obvious, but I'm new Python :) |
Thanks just need a license confirmation before I can start merging the change. Please confirm that we can use, modify, copy, and redistribute this contribution. Thanks. |
Thanks. I'll confirm. Before merging, I want to understand why this doesn't fail when specifying a requirements file. I'm looking into it this week. |
I did some testing with requirements.txt and virtualenv. It did throw an error during that testing, it's possible that you didn't actually run your version of the install during the requirements.txt test. My normal testing for installation is something like:
Step 4 can work for requirements.txt as well I've had issues with the wheel cache messing this up on Python 3, and if you don't see the process running try adding |
Thanks for the detailed steps! I was able to reproduce the failure when providing a requirements.txt file. I have reached out to our Legal team to look into allowing you to use, modify, copy, and redistribute this contribution. I will provide updates when I have them. |
@pfifer I just received confirmation on my end that you may use, modify, copy, and redistribute this contribution. Apologies for the delay while we got the legal stuff in order. |
@pfifer, PTAL when you can. Once this merges, when would be the next release of the library? |
Problem
During pip install if a Maven artifact fails to download, the failure is silent (i.e., only a print message occurs). This results in subtle undesirable behavior in KCL workers where a subset of jars exists on the classpath.
Solution
Replace the print message with a RuntimeError for better awareness of failed downloads.