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

build: Allow python bindings to be used from install #1194

Merged
merged 3 commits into from
Mar 18, 2022

Conversation

paulgessinger
Copy link
Member

This PR adds some changes to enable the python bindings to be used from an install. Instead of source $BUILD/python/setup.sh you can now do source $INSTALL/python/setup.sh.

The folder python won't make sense if ACTS is installed into a directory alongside other projects, but I would argue in that case you would not want to enable the python bindings anyway.

@paulgessinger paulgessinger added this to the next milestone Mar 15, 2022
@codecov
Copy link

codecov bot commented Mar 15, 2022

Codecov Report

Merging #1194 (a15a3aa) into main (6969a87) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1194   +/-   ##
=======================================
  Coverage   47.81%   47.81%           
=======================================
  Files         360      360           
  Lines       18591    18591           
  Branches     8769     8769           
=======================================
  Hits         8890     8890           
  Misses       3649     3649           
  Partials     6052     6052           

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@paulgessinger
Copy link
Member Author

@stephenswat can you look at this maybe? Shouldn't be overly complex.

Copy link
Member

@stephenswat stephenswat left a comment

Choose a reason for hiding this comment

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

Looks like a solid change, I'll stamp it. Is it still possible to run Python code from builds (rather than installs)? Not that this is necessarily such an important feature.

@paulgessinger
Copy link
Member Author

paulgessinger commented Mar 18, 2022

Yes it is, this should not affect that. Main difference is that from a build, the python files should be symlinked (to allow changing them without rebuilding) whereas they are copied for an install.

Let me actually double check that though, just to be safe.

@paulgessinger
Copy link
Member Author

Still works on my end.

@kodiakhq kodiakhq bot merged commit 6147e1b into acts-project:main Mar 18, 2022
@paulgessinger paulgessinger modified the milestones: next, v18.0.0 Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants