-
Notifications
You must be signed in to change notification settings - Fork 90
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
cmake install fixes #2596
cmake install fixes #2596
Conversation
We guess the location, but it can be changed with -DCMAKE_INSTALL_PYTHON_SITEARCH
running `make all install` in manual folder no builds and installs the html manual
Skip unit test if gtest is not available
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.
LGTM, thanks @dschwoerer !
rpath is broken, so still WIP |
requires a wrapper around libboutcore
It still ignore the python version, and uses what ever python version cmake can find. `py.310 -m build` and `py.311 -m build` give the same results. `-C` flags can be used to tell cmake to use a given python version.
removesuffix is only python3.9+
otherwise the error is lost as only the last exit code is checked
The python zip implementation doesn't support them, so we end up with broken symlinks and thus unloadable libaries.
Should be working now 👍 Unlike before the cython library is not directly imported, but a wrapper imports everything (except symbols starting with |
Default is to use local versioning
Nice to have:
Should this be split into several PRs? |
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.
Using a custom backend is very clever and really nice! I have a few suggestions, and it could do with some docstrings.
Could pyproject.toml
have the project metadata too, or does the backend handle all that?
I suspect this will need conflicts fixing after the boutpp numpy PR goes in.
Also, the black workflow is broken: https://github.com/boutproject/BOUT-dev/actions/runs/3377858435/jobs/5607304385#step:5:39
So that will need double-checking
Oh dear, #2589 and this PR both renamed a bunch of files. I had a quick go, but @dschwoerer you're probably going to have to deal with this, I'm afraid! |
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 feedback 👍
It could, but then it needs to be parsed + reformatted and printed. Might be easier to add it directly. But more metadata is one of the missing things.
Yes. Should be fixed now.
black seems to be fixed. The |
Otherwise the extension suffix needs to be known.
Some tests failing like:
https://github.com/boutproject/BOUT-dev/actions/runs/3385119775/jobs/5622897973#step:9:823 |
Installs
boutcoreboutppResolves one of the points of: #2321