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

Add "platform_system" to the environment when solving in Pypi #289

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

romain-intel
Copy link
Contributor

@romain-intel romain-intel commented Dec 1, 2022

Without it, the following YAML:

channels:
  - conda-forge
dependencies:
  - pip
  - pip:
    - twisted

Will result in bringing in twisted-iocpsupport when solving on Linux despite the fact that that package is for Windows only.

This was due to the platform_system marker missing.

This PR also adds linux_{arch} for Linux platforms which is similar to what packaging does (see https://github.com/pypa/packaging/blob/main/packaging/tags.py#L434).

Without it, the following YAML:
channels:
  - conda-forge
dependencies:
  - pip
  - pip:
    - twisted

Will result in bringing in twisted-iocpsupport when solving on Linux despite
the fact that that package is for Windows only.

This was due to the platform_system marker missing.

This PR also adds linux_{arch} for Linux platforms which is similar to what
packaging does (see https://github.com/pypa/packaging/blob/main/packaging/tags.py#L434).
@netlify
Copy link

netlify bot commented Dec 1, 2022

Deploy Preview for conda-lock ready!

Name Link
🔨 Latest commit 8d63bad
🔍 Latest deploy log https://app.netlify.com/sites/conda-lock/deploys/638863b580fd90000815116e
😎 Deploy Preview https://deploy-preview-289--conda-lock.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@romain-intel
Copy link
Contributor Author

Thanks for merging!

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