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
Python install modifications for compatibility with conda-forge #1737
Conversation
Downstream Build Status Report - ad33d53 - 2024-04-20 13:50:49 -0500Build
|
Pull Request Test Coverage Report for Build 8767088217Details
💛 - Coveralls |
Ok I had to make one more change (which is really a change to cycamore, but I replicated it here for consistency).
This was not a problem before because we always export |
Hmm it looks like making the changes to |
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.
Thanks @bennibbelink - this all looks reasonable. Just one question about installing FindCyclus.cmake
"properly"?
b3ac054
to
e50ccf5
Compare
Signed-off-by: bennibbelink <79653949+bennibbelink@users.noreply.github.com>
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.
Thanks for the update @bennibbelink
I think our python installation script is more complex than is necessary and it is causing builds in
conda-forge/cyclus
to fail at pytests due to not being able to find thecyclus
package (stemming from incorrect installation).My understanding of the issue is as follows:
SetupPyInstall.cmake
based on some vars in the build. I think because we configure this during the build (substitute the @@ variables) the placeholder used by conda was not being kept as a placeholder, rather it was expanded out to the absolute path instead of SP_DIR/cyclus (as I saw in build output)This PR eliminates the need for configuring a separate CMake script by replacing the
SCRIPT
argument withCODE
.We can then pass in the conda placeholder via
-DPYTHON_SITE_PACKAGES