This repository satisfies PEP-503 standard.
Its purpose is to provide pre-built binary files for some packages that we use but whose wheels were not published to PyPI.
In order to install just a single numpy
/ pandas
package, use:
pip install -i https://h2oai.github.io/py-repo/ numpy
If using a requirements.txt file that lists numpy/pandas/other packages:
pip install --extra-index-url https://h2oai.github.io/py-repo/ -r requirements.txt
- Create link in the main
index.html
file; - Create file
{PACKAGE}/index.html
if it doesn't exist yet; - In the file
{PACKAGE}/index.html
add the following line:<a href="{URL}#sha256={SHA}>{FILENAME}</a>
, where{URL}
is a publicly available url of the binary file (which could be hosted on S3 for example);{SHA}
is obtained from python scriptimport hashlib; print(hashlib.sha256(open("{FILENAME}", "rb").read()).hexdigest())
;- and
{FILENAME}
is the name of the wheel file.