-
-
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
Phase install_lib fails using Spack if system's Python is used #86
Comments
Building with dependencies from external adds another possible root of failure that is difficult to test. I started developing a test for the problem you mentioned above in #93. However, it is not done yet and I can also not estimate how much more time it will take. Therefore, I will put it on hold for now. If anybody else wants to continue on this: I would appreciate and help. |
I ran into an issue that I think is related to this problem. I used a Spack environment that:
Then I installed preCICE and the python bindings manually using this environment. That was needed for some tests. When running some Python code it would not pick up the changes I made to preCICE. When running C++ it was fine. It turned out that I would use another (already installed) preCICE version when running Python code. I was digging a bit further and found the following: The Python-bindings in version 2.2.0.1 do not install into the given prefix of Spack, but instead install into Observations:
I think in the latest release something in the installation procedure changed that we need to roll back. Summary: |
This sounds like a nasty bug... Do you think it's possible to reproduce this behavior with a test? I would propose the following strategy:
I cannot really imagine what we might have introduced recently that breaks your setup. The history of setup.py looks ok (but this does not say much). A good candidate is in my opinion #71, since this changed quite a lot of things. |
I have debugged this a bit and found the following:
Goals/Questions:
|
Fixed by spack/spack#25077 |
i tried to install the bindings using Spack on a system where external packages were set up with
spack external find
. This command also found the pre-installed Python of the system. Now, building the packagepy-pyprecice
fails with the following error message:The
install_lib
phase creates the necessary_version.py
file , but it also wants to copy files into the system pathwhich is not possible without super user rights. Thus, the phase fails.
Why does the build phase want to copy data over and is it necessary? The answer should be no as all
py-pyprecice
related files should end up in the corresponding Spack directory that is user-writable.This might be related to the problem observed during the workshop which led to #84.
The text was updated successfully, but these errors were encountered: