-
I working on python 3.10.14 project using poetry. The project has the following poetry dependency: [tool.poetry.dependency]
groundingdino = {file="../external_library/groundingdino-0.1.0-cp310-cp310-linux_x86_64.whl"} During project development, 'poetry install' works fine. However, after creating a whl file using poetry build, (to deploy this project)
Is there a way to configure the whl file created by poetry build to look for files in the for example. If exist dir like, then, following command works. (automatically find groundingdino whl file)
what I want to do is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Afaik, the standard (and therefore also Poetry) does not support wheels with relative path dependencies. Since Poetry aims to create valid wheel files, which may be consumed by other tools than Poetry, we cannot deviate from the standard in this case. In case, you just want to use pip --find-links, you have to create a wheel with a name-value-dependency instead of a path dependency, i.e. change your pyproject.toml as follows:
|
Beta Was this translation helpful? Give feedback.
Afaik, the standard (and therefore also Poetry) does not support wheels with relative path dependencies. Since Poetry aims to create valid wheel files, which may be consumed by other tools than Poetry, we cannot deviate from the standard in this case.
In case, you just want to use pip --find-links, you have to create a wheel with a name-value-dependency instead of a path dependency, i.e. change your pyproject.toml as follows: