-
Notifications
You must be signed in to change notification settings - Fork 22
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 SofaPython3 fetching #99
Fix SofaPython3 fetching #99
Conversation
Hey @adagolodjo, why is this PR closed? |
Oops, I didn't do it on purpose. |
bfbe81a
to
806a7c6
Compare
@adagolodjo It seems the PR works, except for MacOS. But I heard SofaPython3 does not compile with Python3.12. And 3.12 seems to be the version used on the MacOS CI (I don't know why). FYI @bakpaul, @olivier-roussel, @fredroy |
Indeed, pybind11 installed in the macOS CI is using python3.8 ( see pybind11 install: https://github.com/SofaDefrost/Cosserat/actions/runs/7759007374/job/21162087802?pr=100#step:3:1416 ) . But python 3.12 is also installed, and Sofa Cosserat seems to use it. So we basically mix here two python versions which sounds not so good. But clearly the compilation error is due to the use of Python 3.12 C API which has apparently changed for PyFrameObject (https://docs.python.org/3/c-api/frame.html). |
The python version installed by the macOS CI that should probably have been used instead of python 3.12 : https://github.com/SofaDefrost/Cosserat/actions/runs/7817011040/job/21323895202?pr=99#step:3:360. |
@olivier-roussel thanks for the information. Do you know why Cosserat uses 3.12 and not 3.8? |
You may have missed my previous comment. Cosserat might require some cmake variables such as |
Any reason to suppress the |
@olivier-roussel I applied stupidly what was done in SoftRobots: https://github.com/SofaDefrost/SoftRobots/pull/250/files 🥲 |
Looks like sofa-framework/sofa#4471 broke the CI of all plugins. |
3fbffbc
to
aa785d8
Compare
@bakpaul @olivier-roussel Do you know how to fix this issue?
|
I know where this is coming from. We have forced to find the same python version as the one use for compilation, in the CmakeConfig of SofaPython3. But I didn't think that the full version (with patch) would be used to generate this. So that makes patches incompatible. We need to fix this in the Config.cmake.in of SofaPython3 to generate the configuration file only with the |
Thanks @bakpaul |
So for setting up the CI you ensure you force installing python version only by MAJOR.MINOR right ? (i.e. you do not care about python version PATCH consistency ?) |
58ace5a
to
9c2529c
Compare
Yes, and normally patches are compatibke |
@olivier-roussel @bakpaul @adagolodjo the CI is finally happy. Can anyone approve and merge (with squashing)? |
* Fix SofaPython3 fetching * Restore Cmake variables related to Python * Update ci * set python version to 3.10 * remove macos workaround
* Fix SofaPython3 fetching * Restore Cmake variables related to Python * Update ci * set python version to 3.10 * remove macos workaround
No description provided.