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

Publish opensim-core on PyPI #3939

Open
mrrezaie opened this issue Oct 13, 2024 · 1 comment
Open

Publish opensim-core on PyPI #3939

mrrezaie opened this issue Oct 13, 2024 · 1 comment

Comments

@mrrezaie
Copy link
Contributor

mrrezaie commented Oct 13, 2024

Hi, I think opensim-core can be published on PyPI with minimal effort, for those who have to work with official Python and pip.

Here, I created a workflow in GitHub Actions (derived from yours) that clones opensim-core, builds it for Windows (Python 3.12), creates a wheel file, and uploads it (available in artifacts):
https://github.com/mrrezaie/testBuildOpenSim/blob/42d9596d642ee87f06c89eee0a4130cd123efd3a/.github/workflows/main.yml#L100-L102

The wheel file can be installed easily using pip install zzz.whl, or be published on PyPI for any Python users: https://medium.com/@blackary/publishing-a-python-package-from-github-to-pypi-in-2024-a6fb8635d45d

Also, installing the PyPI package in Google Colab would be much faster than the conda package (through condacolab).

Hope this helps.

Update: I found one other advantage; since the opensim dll and exe files are being copied into the opensim package folder using this method, there won't be any interference with other dependencies like casadi and ezc3d. So, all packages can be installed and used in a same Python environment.

@alexbeattie42
Copy link
Contributor

This issue seems relevant to the discussion also.

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

No branches or pull requests

2 participants