-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Patching setup.py for installation without pip for Spack #63
Conversation
When I add
Branch with that approack (using |
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.
To summarize: With the suggested changes I think we are close to merging this PR. If necessary, we can open another one, if the packaging
issue cannot be resolved on the spack side.
I started to wonder whether the pip version should be checked in the |
What was the current status of this PR? As far as I remember it's ready to merge. @ajaust Or are there any open points? If not, I will approve and merge. |
I am not sure. How small should the fixes be? The PR relaxes the dependency of Regarding the Spack installation this is only a small step for full Spack support. At the moment we still need the patch and a adapted installation procedure for the Spack package since:
As the Spack package needs a patch anyway, we could also change the patch in the Spack repository to remove the whole
|
Thanks for the summary!
Relaxing the dependency on Comparing the two options that we currently have (dependency on
I think that here the patch that we provide is a good solution: Using At the current state we do not have to do anything / cannot do anything here.
Here, #65 will hopefully converge at some point. Right now, we are a bit stuck in this PR, but might occasionally find a solution.
I assume that we will still need a patch (at least due to My suggestion: Let's merge this PR and create a draft PR to update the patch accordingly. |
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.
I did a few checks with older pip version (pip 9.0..2
) and using python3 setup.py install
. All warnings are issued correctly. However, there is a downside: pip
seems to only show warnings, if the -v
option is provided.
Maybe we are really following a wrong approach here? If the user does not see the warning in the default case, it is not worth a lot to provide a warning.
The latest commit introduces a fundamental change: pip 19.0.0 is now the minimal requirement. This allows us to raise an exception, if the version is too low and this is also something the user will see. |
…bleshooting for unsupported pip versions.
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.
From my point of view the new, stricter requirements on the pip version are reasonable and guarantee safe usage.
@fsimonis can you take a look at this PR? Especially w.r.t code sanity and documentation of the installation process, requirements and dependencies? |
I merged the current state of develop into this fork. From my perspective everything now looks clean. I would like to merge this PR soon and then continue with #70. |
For the installation of the bindings with Spack I have patched
setup.py
. The Spack package (spack/spack#19558) uses thesetup.py
directly instead of usingpip
.However, for checking the version I use a crude fix by importing
from setuptools._vendor.packaging
. I had problems when using the packaging package from Spack.