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] Request to publish hip-python to pypi #42

Open
yaoyaoding opened this issue Jan 9, 2024 · 3 comments
Open

[Publish] Request to publish hip-python to pypi #42

yaoyaoding opened this issue Jan 9, 2024 · 3 comments

Comments

@yaoyaoding
Copy link

Thanks for this great python binding for hip runtime libraries!

I am wondering is there any plan to publish this package to PyPI so that we can directly install with

$ pip install hip-python

and without specifying the extra-url to test pypi.

@domcharrier
Copy link
Contributor

Thanks for using hip-python! Regarding your question: The decision has not been made yet.
Among other things, we are currently waiting for the PyPI organization account application process to reopen
(more details: https://discuss.python.org/t/state-of-pypi-organizations/33764/6).

@yaoyaoding
Copy link
Author

@domcharrier thanks for sharing the progress! Looking forward to the release to pypi.

I will leave the issue here for any update on the pypi release (if you don't mind).

@domcharrier
Copy link
Contributor

domcharrier commented Jul 24, 2024

Please find below an example of an requirements.txt file where numba and numpy are obtained from (standard) PyPI but the remaining packages from Test PyPI (via --extra-index-url https://test.pypi.org/simple/):

--extra-index-url https://test.pypi.org/simple/
hip-python
hip-python-as-cuda
rocm-llvm-python
numba>=0.58
numpy

Via the --extra-index-url switch you can specify packages from different indexes in the same requirements.txt file.

Alternative: Set extra index url via pip config

Alternatively, you can do:

pip install --upgrade pip
pip config set global.extra-index-url https://test.pypi.org/simple

And then prescribe HIP Python package dependencies via a standard requirements.txt file (or pyproject.toml):

hip-python
hip-python-as-cuda
rocm-llvm-python
numba>=0.58
numpy

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