Skip to content

Unable to install for multi platforms. markers and sys_platform is ignored #6354

Open
@danrossi

Description

@danrossi

This is an old issue that was supposably fixed but when configuring mac wheels on windows it's still trying to install them and run into errors like this when running pipenv install

ERROR: cffi-1.16.0-cp312-cp312-macosx_11_0_universal2.whl is not a supported

And vice versa on mac I have to remove the windows selected package for the same reason.

On mac having these two lines in the file fails from a supposed fix.

Pillow = { version = "*", markers="sys_platform == 'win32'" }
cffi = { version = "*", markers="sys_platform == 'win32'" }

With errors like

    raise InstallationError(msg)
pipenv.patched.pip._internal.exceptions.InstallationError: Invalid requirement: 'cffi*': Expected end or semicolon (after name and no valid version specifier)

Full pipenv file

[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
starlette = "*"
starlette-jwt = "*"
pystray = "*"
Events = "*"
altgraph = "*"
anyio = "==4.4.0"
asgiref = "*"
click = "*"
colorama = "*"
future = "*"
h11 = "*"
httptools = "*"
idna = "*"
pyinstaller-hooks-contrib = "*"
python-dotenv = "*"
pywin32-ctypes = "*"
six = "*"
sniffio = "*"
watchgod = "*"
MarkupSafe = "*"
PyYAML = "*"
icnsutil = "*"
macholib = "*"
pefile = "*"
pyjwt = "*"
cryptography = "*"
appdirs = "*"
pyinstaller = "*"
uvicorn = {extras = ["standard"], version = "*"}
python-decouple = "*"
pyinstaller-versionfile = "*"
toml = "*"
boto3 = "*"
rich = "*"
gitpython = "*"
wheel-filename = "*"
delocate = "*"
Pillow = { version = "*", markers="sys_platform == 'win32'" }
cffi = { version = "*", markers="sys_platform == 'win32'" }
pyobjc = { version = "*", markers="sys_platform == 'darwin'" }
pillow_mac = {file = "build/mac/Pillow-10.1.0-cp312-cp312-macosx_11_0_universal2.whl", markers="sys_platform == 'darwin'" }
cffi_mac = {file = "build/mac/cffi-1.16.0-cp312-cp312-macosx_11_0_universal2.whl", markers="sys_platform == 'darwin'"}
websockets_mac = {file = "build/mac/websockets-12.0-cp312-cp312-macosx_11_0_universal2.whl", markers="sys_platform == 'darwin'"}
[dev-packages]

[requires]
python_version = "3.13"

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