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

Install an extra via environment markers #1555

Closed
matrixise opened this issue Jan 24, 2022 · 2 comments
Closed

Install an extra via environment markers #1555

matrixise opened this issue Jan 24, 2022 · 2 comments

Comments

@matrixise
Copy link

Environment Versions

  1. OS Type - Linux, macOS
  2. Python version: $ python -V 3.10.1
  3. pip version: $ pip --version 21.3.1
  4. pip-tools version: $ pip-compile --version 6.4.0

Steps to replicate

in a requirements.in, I try to install spacy for non M1 chip and spacy[apple] for M1

spacy; platform_machine != 'arm64'
spacy[apple]; sys_platform == 'darwin' and platform_machine == 'arm64'

Expected result

in the requirements.txt

spacy; platform_machine != 'arm64'
spacy[apple]; sys_platform == 'darwin' and platform_machine == 'arm64'

Actual result

spacy; platform_machine != 'arm64'

I would like to be honest, I am not sure about the syntax for the installation of an extra via the environment markers. Do you have some advices?

Thank you

@AndydeCleyre
Copy link
Contributor

I think this is currently working as intended.. Might this be a duplicate of #1553 or #1326?

@AndydeCleyre
Copy link
Contributor

I'm going to close this in favor of concentrating relevant discussion at #1326, thanks!

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

No branches or pull requests

2 participants