Non-Linux wheel refs are discarded from poetry.lock
See original GitHub issue- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: macOS Big Sur 11.6
- Poetry version: 1.1.11
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/castarco/a32b9b65706d3e31047ac8b777d0fb81
Issue
poetry
keeps removing wheel references for macos & windows systems from the poetry.lock
file when I run the poetry update
command.
More specifically, it does that with polars v0.9.12
(but not with polars v0.9.11
) (while it’s able to install the package if I manually add the entries to the lock file for the macos wheels). The wheels exist and are reachable.
Reference to the other tracked issue for polars
: https://github.com/pola-rs/polars/issues/1421#issuecomment-934165638
manually edited “block” in poetry.lock
(adding the first wheel, for macos):
polars = [
{file = "polars-0.9.12-cp36-abi3-macosx_10_7_x86_64.whl", hash = "sha256:a9d03bf08b8d3cb54de337575c0e82fca499906a96e339ac85f58b07199c153f"},
{file = "polars-0.9.12-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:a2bf976a7f10c72cd437a3a1e8888f4416be84c7f23c97f847eca363c8771471"},
{file = "polars-0.9.12.tar.gz", hash = "sha256:eb8ad15ea155d2840de07e0f3b1bfadd7fec53591045a8b29a076e5f7a76de2b"},
]
After running poetry update
(from macOS):
polars = [
{file = "polars-0.9.12-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:a2bf976a7f10c72cd437a3a1e8888f4416be84c7f23c97f847eca363c8771471"},
{file = "polars-0.9.12.tar.gz", hash = "sha256:eb8ad15ea155d2840de07e0f3b1bfadd7fec53591045a8b29a076e5f7a76de2b"},
]
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
poetry install | SolverProblemError Because my_project ...
If you are locking in a project where sub-dependencies are directly available on the file system, some *.egg-info directories may interfere with ...
Read more >Python Requirements - Serverless Framework: Plugins
Compiling non-pure-Python modules or fetching their manylinux wheels is supported on non-linux OSs via the use of Docker and the docker-lambda image.
Read more >Commands | Documentation | Poetry - Python dependency ...
If there is a poetry.lock file in the current directory, it will use the exact versions from there instead of resolving them. This...
Read more >Python Poetry Cheat Sheet - YippeeCode
When Poetry has finished installing, it writes all of the packages and the exact versions of them that it downloaded to the poetry.lock...
Read more >Insights into how poetry.lock works cross platform - Packaging
Here is a fragment from the lockfile for a package that is only distributed as bdist wheel for or python -m poetry add...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@castarco this is pretty easy to replicate in my case.
Given the following dependencies in
pyproject.toml
:poetry lock
inside of a linux-based container(volume mount the current dir into the container so that changes persist after exit)
[metadata.files]
section which includes wheel digests for many packages.poetry lock
on the macOS 12.4 host machine. Poetry 1.1.14 installed in both environments.Not PEBKAC at all. Pypi had an issue, and unfortunately poetry cached that issue. Please close the issue if you’re happy.