Skip to content

Building wheel file using poetry with local wheel file. #9479

Closed Answered by radoering
hawksung1 asked this question in Q&A
Discussion options

You must be logged in to vote

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:

[tool.poetry.dependencies]
groundingdino = ">=0.1.0"

[tool.poetry.group.dev.dependencies]
groundingdino = {file="../external_library/groundingdino-0.1.0-cp310-cp310-linux_x86_64.whl"}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hawksung1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants