-
-
Notifications
You must be signed in to change notification settings - Fork 987
Out-of-tree recipe build support #3544
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
Conversation
hoodmane
left a comment
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 working on this @ryanking13!
it builds:
- numpy
This was one of my main objectives when working on the out of tree builds project. =)
it fails to build:
- scipy
Yeah, that's hopeless, at least until we get a real fortran compiler. Even then it may take signficant work
|
Scipy build error seems related to |
But that's just the first error. There will be many many more if you fix that one. |
But we are building scipy in-tree with the same recipe, so if everything works correctly it should be able to build out-of-tree too I think. |
|
Okay, I was able to build scipy out-of-tree with the same recipe. The problem was:
Opened #3576 for a fix. |
|
I think this is ready to be reviewed now. I managed to build core package sets out-of-tree including numpy, scipy, pandas, matplotlib, scikit-learn, scikit-image, Pillow, opencv-python, xgboost. |
|
Thanks! Will review soon. |
|
Thanks! This is on top of #3592. |
hoodmane
left a comment
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 working on this @ryanking13! I'm sorry it took me so long to get around to reviewing it.
| return | ||
| try: | ||
| os.environ["PYODIDE_ROOT"] = str(search_pyodide_root(__file__)) | ||
| os.environ["PYODIDE_ROOT"] = str(search_pyodide_root(Path.cwd())) |
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.
Is this a safe change? It does something pretty different. Could you explain the logic before vs now?
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.
I think there was a bug in the logic before, which caused an error here: #3669.
Previously it was finding the pyodide root from the parents of that file. So if we don't install pyodide-build in a virtual environment inside the project folder, it failed.
hoodmane
left a comment
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 again @ryanking13 !
Description
Add out-of-tree support of
pyodide build-recipes. Thanks to the awesome xbuildenv work by Hood, the required code change was quite small.I am testing this branch here: https://github.com/ryanking13/pyodide-recipes-mirror
Checklists