PackageFinder.find_requirement always fallback to sdist because being given the wrong ABI tag #378
Closed
1 task done
Labels
🐛 bug
Something isn't working
Steps to reproduce
pdm add lxml
to installlxml
via wheel installation.pdm use -f 3.8
pdm sync -v
to installlxml
Actual behavior
It installs lxml via compiling from source unlike the previous case although lxml has prebuilt wheels with Py3.8.
Expected behavior
It installs lxml via wheel installation.
Environment Information
Hotfix
I find out what causes this problem. The
get_abi_tag
function frompdm.models.pip_shims
is executed by the Python interpreter of PDM instead of the interpreter which we have chosen.linw1995@f4fb1ea
This commit works well with most kinds of Python interpreters. But the better way is executing the whole
get_abi_tag
function by the interpreter we want. To do this, we may need to endure installing extras dependencies like the wheel package. But it is possible we are able to move the codes which we need from the wheel package into the PDM package.The text was updated successfully, but these errors were encountered: