-
Notifications
You must be signed in to change notification settings - Fork 192
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
Docs: Add release version pinning to install instructions #4147
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4147 +/- ##
===========================================
+ Coverage 78.86% 78.87% +0.01%
===========================================
Files 467 467
Lines 34481 34481
===========================================
+ Hits 27189 27192 +3
+ Misses 7292 7289 -3
Continue to review full report at Codecov.
|
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.
That's really annoying, but if that's the only viable work-around then we have no choice. Is there a related issue on the conda source code or so that we could subscribe to?
Is the change also necessary for pip?
I think it is. It's hard to tell exactly, because it just stalls at "Solving environment". But I imagine it is mainly related to this issue: conda-forge/aiida-core-feedstock#30, which is "fixed" on our end (well now that conda-forge/aiida-core-feedstock#32 is also closed). But a full fix I guess may be to make the rabbitmq feedstock go back and pin all their old versions to erlang version ranges AND mark the old builds as broken, then maybe Conda would not get so confused.
No, I just did this for consistency, but can change it back? |
Having a bit more of a think about this: requirements:
run_constrained:
- aiida-core.services =={{ version }} which would constrain the possibilities for conda environment solving |
BTW we were discussing conda/pip interoperability during the |
Should we put this PR a bit on hold to see if conda-forge/aiida-core-feedstock#33 potentially resolves this?
I am not sure, I guess if we recommend that for conda, then we should also do it for pip. One issue that I see is that installing with I think this is less of an issue with pip, where installing |
Very interesting. I think we should test that and potentially have this reflected in our docs once the beta testing phase has ended and in case this works well. |
I would actually argue that we should only put this for conda, as that is the exception. Calling without explicit version number for pip should always get the latest version, which is what we want. |
Ok well I'll close conda-forge/aiida-core-feedstock#33 today, and see if this helps first. |
Yeh mehh; with the changes, on my workstation it still takes ~100 seconds to solve the environment with no version guidance (~10 with pinning), which is hardly ideal for a "quick-start". I have removed the pinning for pip |
Fine for me to merge. When we do, though, please add the reason very clearly in the commit, as stated by @chrisjsewell that it is for performance reasons |
Conda is having a hard time solving the environment without versions specified (I think due to some tricky dependency requirement balances between aiida-core and erlang). It basically hangs on:
Providing the actual version appears to solve this, and so in this PR I have added the release version to the install instructions.
Following https://stackoverflow.com/a/27418207/5033292, the release version is a variable, and so will auto-update for new releases of aiida-core.