Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lock --strategy no_cross_platform should list the wheels for different Python versions #2568

Open
paugier opened this issue Jan 17, 2024 · 0 comments
Labels
🐛 bug Something isn't working

Comments

@paugier
Copy link

paugier commented Jan 17, 2024

When using pdm lock --strategy no_cross_platform (workaround for #2566), only the wheels for the Python version used during lock are listed.

[[package]]
name = "scipy"
version = "1.11.4"
requires_python = ">=3.9"
summary = "Fundamental algorithms for scientific computing in Python"
groups = ["doc", "full", "test"]
dependencies = [
    "numpy<1.28.0,>=1.21.6",
]
files = [
    {file = "scipy-1.11.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:91af76a68eeae0064887a48e25c4e616fa519fa0d38602eda7e0f97d65d57937"},
    {file = "scipy-1.11.4.tar.gz", hash = "sha256:90a2b78e7f5733b9de748f589f09225013685f9b218275257f8a8168ededaeaa"},
]

Then, installing with another python version is broken because it tries to install from the sdist which usually does not work.

Expected behavior

cross_platform should be about the platform, not the Python version. The wheels for other Python versions should be listed.

Environment Information

PDM version:
  2.11.2
Python Interpreter:
  /home/users/augier3pi/dev/fluiddyn/.venv/bin/python (3.9)
Project Root:
  /home/users/augier3pi/dev/fluiddyn
Local Packages:
  
{
  "implementation_name": "cpython",
  "implementation_version": "3.9.2",
  "os_name": "posix",
  "platform_machine": "x86_64",
  "platform_release": "5.10.0-27-amd64",
  "platform_system": "Linux",
  "platform_version": "#1 SMP Debian 5.10.205-2 (2023-12-31)",
  "python_full_version": "3.9.2",
  "platform_python_implementation": "CPython",
  "python_version": "3.9",
  "sys_platform": "linux"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant