Poetry: how to specify the same dependency twice with different CPU architectures (e.g x86 and x86_64)

Viewed 10

I am evaluating using Poetry for packaging and building a desktop application.

The only roadblocker is that poetry doesn't seam to allow specifying the same package twice. For instance I couldn't do the following:

[tool.poetry.dependencies]
python = "^3.9"
lru-dict = {path = "./packages/lru_dict-1.1.6-cp39-cp39-win_amd64.whl"}
lru-dict = {path = "./packages/lru_dict-1.1.6-cp39-cp39-win32.whl"}

Notice that the lru-dict package is specified twice with the only difference being the bitness (i.e. the CPU architecture) that the package is built for.

I know I can upload the package to PyPI and pip will choose the appropriate version dynamically. But what about private or local packages?

0 Answers
Related