tflite_runtime is not hosted in pypi, but can be installed as:
pip3 install --extra-index-url https://google-coral.github.io/py-repo/ tflite_runtime
How can I package my project which has this dependency?
I have seen this setuptools docs and some threads 1, 2 but no luck so far.
setup.cfg
[options]
...
dependency_links = https://google-coral.github.io/py-repo/tflite-runtime/
install_requires =
tflite_runtime==2.5.0
Bonus: locally I use mac. My deployment will be on linux. Is there a way to install the right whl based on OS?
dependency_linkswere declared obsolete and finally removed inpip19.0. The replacement for it isinstall_requireswith special syntax (supported sincepip19.1):'package_name @ git+https://gitlab.com/<user>/<repo>.git@<commit>'. See pip.pypa.io/en/stable/cli/pip_install/#requirement-specifiers and python.org/dev/peps/pep-0440/#direct-references . This requirespip installand doesn't work withpython setup.py install.