-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
f2py entry point with non-functioning shebang in osx-arm cross-compile #276
Comments
Thanks for the report @bnavigator. Seems there's a bunch more relevant info in conda-forge/slycot-feedstock#50. @isuruf @beckermr @xhochy |
@erykoff may have insight here too |
The explanation in conda-forge/slycot-feedstock#50 (comment) doesn't look plausible to me. |
Did you try the suggested change? |
I overlooked the |
|
As it seems easy to test this out, it seems like a worthwhile step. FYI, both Isuru and Uwe are either out of contact completely or rarely in contact for at least a few months so you may not get help from them right away. They both know more than I do about this so we may have to wait to get this resolved. |
Negative. I don't have a mac to test this locally. |
Open unanswered question: conda/conda-build#4291 Knowledgebase about noarch entry_points, unclear about what is needed on non-noarch: https://conda-forge.org/docs/maintainer/knowledge_base.html#noarch-python |
Ahhh then we'll have to wait until someone who does have a mac has the time or someone more knowledgeable can confirm what change we need. :/ |
What's the harm in building this feedstock without the And even if we don't feel comfortable in doing that, we could push the builds to a dev label, for example. |
Good find on that conda-build issue! Many of the core conda-build contributors are not active on the project anymore for various reasons and so that question might best be answered by grepping the code. @h-vetinari Great idea! Using a dev label is totally fine. If you need me to make a branch in the upstream feedstock just bump in the PR to be merged to it. |
You would have to make an additional line for |
Seems not so hard to do with a little time and elbow grease. Feel free to go ahead if you'd like. |
I'm a maintainer on this repo, so I can do that myself. 🙃
It's called |
That is a great question on the conda-build issue! And I may be wrong that this is the source of the problem, and I certainly don't know the interaction of the entry points defined in setup and those in meta.yaml, and how this works with the cross-python ... but it certainly is suspicious, and I've had problems with incorrect entry points in the meta.yaml messing things up (but maybe these were noarch packages which might matter?). In an admittedly quick search, I couldn't find any prior art in using f2py in particular in a cross-compiling setting. |
Hmm, looking at it a little longer, doesn't the entry_points line contradict the batch file? numpy-feedstock/recipe/meta.yaml Line 25 in a823229
numpy-feedstock/recipe/f2py.bat Lines 1 to 4 in a823229
numpy-feedstock/recipe/bld.bat Lines 19 to 22 in a823229
So maybe, the correct entries should actually be https://github.com/numpy/numpy/blob/3da5da966d4518f7312bda4872b51f9f21de50a9/setup.py#L419-L429 |
There is as least https://github.com/conda-forge/fastscapelib-f2py-feedstock, but they also patch the F2PY_EXECUTABLE from the CMakeLists.txt away. (conda-forge/fastscapelib-f2py-feedstock#17) |
I did the equivalent in #277. I'm not convinced we still need |
f2py3 and f2py3.10 are upstream definitions and expected e.g. by https://github.com/scikit-build/scikit-build/blob/master/skbuild/resources/cmake/FindF2PY.cmake#L69 Currently they are being installed (by |
Did you check whether the entry_points entry overrides the .bat wrapper copied in bld.bat or if it is the other way round ( |
That's an interesting question. |
Not fixed by #277 :( |
Solution to issue cannot be found in the documentation.
Issue
With
for the osx-arm cross-compilation, calling f2py3 fails with:
See discussion in conda-forge/slycot-feedstock#50 and conda-forge/slycot-feedstock#49.
cc @conda-forge/help-osx-arm64
Installed packages
Environment info
The text was updated successfully, but these errors were encountered: