Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pipenv markers don't apply with files #6431

@BuiltByBen

Description

@BuiltByBen

Our pipenv is on Python3.12 and uses the library pc-ble-driver-py. Because the official PyPi nordic library does not support Py3.12 we are using a community fork.

We would like to make our Pipenv Windows compatible. Currently it is only Linux (Ubuntu) compatible. The pcb-ble-driver-py is only needed in our Linux eco system NOT Windows.

We were trying to add markers to make sure that the library was only installed on Linux systems

pc-ble-driver-py = {file="https://github.com/embedded-community/pc-ble-driver-py/releases/download/v0.17.10/pc_ble_driver_py-0.17.10-cp38-abi3-linux_x86_64.whl"}

However adding

markers = "sys_platform == 'linux'"

Was not respected by pipenv in the case of this library which is being pulled in from a file

The other thought was to have 2 entries for this library with a Windows marker that referenced an older PyPi (0.11.4) version that at least builds (doesn't matter if it actually worked). This does not work, though, because the TOML file then contains duplicate entries for pc-ble-driver-py

Is this expected behavior or is there another way to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions