Skip to content

build: fix wheel built on windows not working on linux#32

Draft
yaseen-mowzer-octave wants to merge 1 commit into
j5int:masterfrom
yaseen-mowzer-octave:fix_platform_deps
Draft

build: fix wheel built on windows not working on linux#32
yaseen-mowzer-octave wants to merge 1 commit into
j5int:masterfrom
yaseen-mowzer-octave:fix_platform_deps

Conversation

@yaseen-mowzer-octave

Copy link
Copy Markdown
Contributor

If you build a wheel of windows it will unconditionally add pywin32 and mozprocess as dependencies. But you cannot install these packages on linux.

Instead of using if sys.platform.startswith("win32") which is evaluated at build time (not install time!), use environment markers as documented in https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#platform-specific-dependencies

In Draft because I haven't done any testing.

If you build a wheel of windows it will unconditionally add pywin32 and
mozprocess as dependencies. But you cannot install these packages on
linux.

Instead of using `if sys.platform.startswith("win32")` which is
evaluated at build time (not install time!), use environment markers as
documented in

    https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#platform-specific-dependencies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants