Giter Site home page Giter Site logo

Comments (7)

frostming avatar frostming commented on June 12, 2024

I don't understand what you encounter because pdm.lock does record all wheels.

what does it contain on your side?

from pdm.

enCHineer avatar enCHineer commented on June 12, 2024

You got me thinking. While doing a minimal example I found that you are right in the default case.
The problem does only occur when doing pdm lock --strategy no_cross_platform

But what I intend to do with no_cross_platform is only limiting the platform and not the python version. I would expect to see all the wheel files of my current platform but with multiple python versions. But I get only a single wheel file.

Or is it intended to lock as well the python version?

from pdm.

frostming avatar frostming commented on June 12, 2024

Or is it intended to lock as well the python version?

If you know the mechanic of the wheel selection, the platform tags are compared together.

from pdm.

enCHineer avatar enCHineer commented on June 12, 2024

But it looks like not only the platform tag is compared.

If I define the python version as >=3.8.*,<3.10.* using --strategy cross_platform I get all the wheel files for the selected version of matplotlib (3.7.4) in the pdm.lock. These include the following for Windows (and many more for the other platforms):

  • matplotlib-3.7.4-cp39-cp39-win_amd64.whl
  • matplotlib-3.7.4-cp38-cp38-win_amd64.whl

If I change over to pdm lock --strategy no_cross_platform only one wheel file will be included in pdm.lock:

  • matplotlib-3.7.4-cp39-cp39-win_amd64.whl

This means not only the platform tag of the wheel file is compared but as well the python-tag. This is not what I would expect. I would still expect to see all wheel files for the available python versions but only one platform.

from pdm.

frostming avatar frostming commented on June 12, 2024

Platform tags means python+abi+platform

from pdm.

enCHineer avatar enCHineer commented on June 12, 2024

When looking at PEP427 this does not sound right. The python-tag is something different and is not part of the platform-tag. All the three last ones together are called "compatibility tags" (PEP425).

But okay. So my enhancement proposal would be to get a possibility to lock to a specific platform (platform-part of the platform-tag?) with multiple python versions. As this is currently not possible.

from pdm.

frostming avatar frostming commented on June 12, 2024

. So my enhancement proposal would be to get a possibility to lock to a specific platform (platform-part of the platform-tag?) with multiple python versions.

The cross-platform strategy does more than that. Under non-cross-platform tag, the environment markers will be evaluated at lock time to discard unmatching requirements. So it is not easy to strip the python tag out of it.

from pdm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.