Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment markers are not applied evenly #1754

Closed
Sclafus opened this issue Dec 7, 2022 · 1 comment
Closed

Environment markers are not applied evenly #1754

Sclafus opened this issue Dec 7, 2022 · 1 comment
Labels
duplicate Duplicate of an existing issue/PR markers Related to environment markers

Comments

@Sclafus
Copy link

Sclafus commented Dec 7, 2022

Environment Versions

  1. OS Type: Windows 10
  2. Python version: Python 3.10.7
  3. pip version: pip 22.3.1
  4. pip-tools version: pip-compile 6.11.0

Steps to replicate

  1. Write a requirements.in file with the following content
wmi ; sys_platform=='win32'
  1. pip-compile

Expected result

#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
#    pip-compile
#
pywin32==305 ; sys_platform == "win32"
    # via wmi
wmi==1.5.1 ; sys_platform == "win32"
    # via -r requirements.in

Note that both pywin32 and wmi are installed on win32 platforms. This is the expected result since pywin32 is installed by wmi and is required only by that package, which has the environment marker for win32 systems.

Actual result

#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
#    pip-compile
#
pywin32==305
    # via wmi
wmi==1.5.1 ; sys_platform == "win32"
    # via -r requirements.in

Is this intended? Am I missing some edge cases?

@atugushev
Copy link
Member

Duplicate of #563

@atugushev atugushev marked this as a duplicate of #563 Dec 7, 2022
@atugushev atugushev added markers Related to environment markers duplicate Duplicate of an existing issue/PR labels Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of an existing issue/PR markers Related to environment markers
Projects
None yet
Development

No branches or pull requests

2 participants