Skip to content
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

Update meta.yaml #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update meta.yaml #24

wants to merge 2 commits into from

Conversation

gattia
Copy link

@gattia gattia commented Oct 5, 2022

Updating meta.yml for conda build. Related to: opensim-org/opensim-core#3273

Recommended here that the numpy version should be specified under the requirements/run section. This is where we specify the requirements for the runtime environment. They also specified something about specifying --numpy with conda-build if using this syntax - I haven't built recipes before so I'll leave that part for someone else that knows the usual syntax/where/when to call this.

I also deleted the build string because I believe that this should be done automatically if you specify a version for requirements/run (but Im not positive on this one). I think that this string should be built by conda-build to have a unique hash that goes after the python version to specify the dependencies etc. and this is how different requirements (e.g., numpy) are specified.

Updating meta.yml for conda build.  Related to: opensim-org/opensim-core#3273

Recommended [here](https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#run) that the numpy version should be specified under the requirements/run section. This is where we specify the requirements for the runtime environment. They also specified something about specifying `--numpy` with `conda-build` if using this syntax - I haven't built recipes before so I'll leave that part for someone else that knows the usual syntax/where/when to call this. 

I also deleted the build string because I believe that this should be done automatically if you specify a version for requirements/run (but Im not positive on this one). I think that this string should be built by conda-build to have a unique hash that goes after the python version to specify the dependencies etc. and this is how different requirements (e.g., numpy) are specified.
@gattia
Copy link
Author

gattia commented Oct 5, 2022

@aymanhab - the original pull request used the wrong environment variable to specify the python/numpy version(s) and thus the CI build failed. I've updated to use {{ python }} & {{ numpy }} which I think is the correct syntax. I think this should also fix the DLL issues mentioned on the opensim documentation page (sorry, I didn't see that updated documentation before my reply in the other thread!)

@aymanhab
Copy link
Member

aymanhab commented Oct 5, 2022

Thanks much for looking into this @gattia I think you're correct that python version is required for the run section as well as the build section. For now we get around it by having the user specify the package consistent with their python but that's not the right way to enforce it.

@aymanhab
Copy link
Member

aymanhab commented Oct 5, 2022

Will wait and see if the build ends up with correct artifacts/names without the string. I'd hesitate to pin in the numpy version since this has been major headache due to the fact that other packages use different variants so I'd lean to make the version >= what's used for the build, will know more once the build goes through. Thanks for your help 👍

@aymanhab
Copy link
Member

aymanhab commented Oct 6, 2022

Had to restore the string/name as it wasn't autogenerated, I uploaded the windows builds to the opensim_admin account on anaconda.org and the packages seem to have the correct dependencies per the info icon, it remains to be seen how this works with other packages that may specify different numpy versions since we're a bit more restrictive now. I'll be uploading the osx builds shortly to the same account and will let you know before moving to the official opensim-org account so we can do more testing. Thanks again for all your help @gattia much appreciated 🏅

@gattia
Copy link
Author

gattia commented Oct 7, 2022

Amazing! Thank you so much, I just did a tiny bit of hacking around with a general hunch you've done a ton here! Hopefully, this helps things out. Let me know when/if you want me to pull the Mac versions and give them a try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants