I am using a python package which has a complex build process, and hence it provides wheels for various platforms.
I am looking for a way to configurate poetry
to be able to install the package using the right wheel (for each platform it will be ran on) given a path to a directory containing the wheels
This is possible with pip by using
pip install --no-index --find-links /path/to/wheels/ package_name
Note:
Hacks are also welcome (e.g - wrapping the wheels in another python package / running code in some setup.py
)
As far as I can tell, Poetry does not have a feature comparable to pip's --find-links
, as stated by this open feature request.
For such a use case, I would recommend to use simpleindex.
Also note Poetry's "Single Page Link Source" feature that might help.
You can use pip
with poetry
as they both can point to the same virtual environment.
poetry shell
pip install --no-index --find-links /path/to/wheels/ package_name
However you cannot make any of these installs permanent (part of pyproject.toml
)
As a workaround you can make "post-install steps" with pip
part of Github Actions, Makefile, or any other install recipe.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With