Skip to content
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

Fix python build #264

Merged
merged 22 commits into from
Jan 30, 2023
Merged

Fix python build #264

merged 22 commits into from
Jan 30, 2023

Conversation

halungge
Copy link
Contributor

Added ${ORIGIN} to the build rpath for python build

when running the python build with pip

cd src/serialbox-python
pip install .

the cmake build target is run, after that the shared libraries are copied from the build folder to site_packages folder of the python environment. Adding ${ORIGIN} to the rpath allows cdll.LoadLibrary to find dependent libraries in the current folder.

@jenkins-apn
Copy link
Collaborator

Hi there, this is jenkins continuous integration...
Do you want me to verify this patch?

@havogt
Copy link
Collaborator

havogt commented Jan 25, 2023

ok to test

@havogt
Copy link
Collaborator

havogt commented Jan 25, 2023

launch jenkins

Copy link
Collaborator

@havogt havogt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Comment on lines 130 to 132

- name: clean up
run: pip uninstall --yes serialbox
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Is this explicitly testing that uninstall doesn't break?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't know whether this makes sense, I added it because of the caching. I don't want the serialbox installation to be cached.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be no caching. Maybe let's remove then, as later we might be confused why it's there.

.github/workflows/CI.yml Outdated Show resolved Hide resolved
@havogt havogt merged commit 51d0ea6 into GridTools:master Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants