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

Upload source to PyPI #4

Open
mjwen opened this issue Feb 23, 2024 · 4 comments
Open

Upload source to PyPI #4

mjwen opened this issue Feb 23, 2024 · 4 comments

Comments

@mjwen
Copy link

mjwen commented Feb 23, 2024

Currently, only Linux wheel is available, no source distribution for wheels for other systems.

We at least should upload source to PyPI. I guess

python setup.py sdist
wine upload dist/*

might be it?

Alternatively, A CI can also be created to automate it; similar to: https://github.com/openkim/kliff/blob/main/.github/workflows/publish.yml

Longer term, we might want to automate the building of wheels for other systems. This seems promising: https://github.com/pypa/cibuildwheel

@ipcamit
Copy link
Collaborator

ipcamit commented Feb 24, 2024

Yes, macOS is bit tricky. Problem is the compiler chain. Libdescriptor uses Enzyme library for differentiation, so for macOS version, I would need to compile it on macOS. I have an old intel based mac, but no access to new ARM silicon. So need to think about the solution. In theory Rosetta stone + macOS should work, but cannot test it yet.

@mjwen
Copy link
Author

mjwen commented Feb 24, 2024

Got it. I guess even if you put a source list on PyPI, a user should not be able to do pip install libdescriptor to compile it because of Enzyme.

@ipcamit
Copy link
Collaborator

ipcamit commented Feb 24, 2024

Given the prevalence of the Apple Silicon, I think this will be priority for me. Let me see if I can cross compile or find appropriate services to try.

@mjwen
Copy link
Author

mjwen commented Feb 24, 2024

https://github.com/pypa/cibuildwheel might give it a try. It provides all kinds of environments, including ARM Mac.

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