Skip to content

Commit

Permalink
fix: pbs_installer interface (build_dir) for auto-install best match …
Browse files Browse the repository at this point in the history
…strategy (#2973)

* Fix new interface from pbs_installer regarding `build_dir`

* Add news

* fix: update minimum version of pbs-installer

Signed-off-by: Frost Ming <me@frostming.com>

---------

Signed-off-by: Frost Ming <me@frostming.com>
Co-authored-by: Frost Ming <me@frostming.com>
  • Loading branch information
o-moe and frostming authored Jun 26, 2024
1 parent 18a75db commit fb173be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions news/2943.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix new interface from pbs_installer regarding `build_dir` and best match auto-install strategy for `pdm use`
(same as for `pdm python install --list`)
2 changes: 1 addition & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ dependencies = [
"importlib-metadata>=3.6; python_version < \"3.10\"",
"hishel>=0.0.24,<0.1.0",
"msgpack>=1.0",
"pbs-installer",
"pbs-installer>=2024.4.18",
"httpx[socks]<1,>0.20",
"filelock>=3.13",
]
Expand Down
2 changes: 1 addition & 1 deletion src/pdm/project/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ def get_version(version: PythonVersion) -> str:
for v, u in PYTHON_VERSIONS.items()
if get_version(v) in self.python_requires
and v.implementation.lower() == "cpython"
and u.get((THIS_PLATFORM, arch))
and u.get((THIS_PLATFORM, arch, True))
]
return matches

Expand Down

0 comments on commit fb173be

Please sign in to comment.