You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the package on the left is only a dependency if the current Python version meets the requirement on the right. This is a very useful feature for packages that aim to support multiple Python versions.
However, when conda skeleton pypi creates meta.yaml, it does not respect the environment markers, leaving any dependencies with environment markers completely out of the dependency structure. Thus, when one runs conda build on such a skeleton, it fails with (full error at evhub/coconut#246)
RuntimeError: Setuptools downloading is disabled in conda build. Be sure to add all dependencies in the meta.yaml
since setuptools tries to respect the environment markers, but conda won't let it.
This is a major problem for packages that use environment markers in their dependencies. It'd be great if this could be fixed, but until then, do you have any ideas for a suitable workaround?
The text was updated successfully, but these errors were encountered:
Adding translation of environment markers to selectors to the skeleton generator is definitely desirable, but I don't think I'll be able to get to it any time soon. PRs welcome - and I'd be happy to answer any questions if anyone wants to tackle it.
PEP 508 added support for environment markers in PyPI version specifications. Specifically, environment markers allow you to have versions like (example on PyPI here)
where the package on the left is only a dependency if the current Python version meets the requirement on the right. This is a very useful feature for packages that aim to support multiple Python versions.
However, when
conda skeleton pypi
createsmeta.yaml
, it does not respect the environment markers, leaving any dependencies with environment markers completely out of the dependency structure. Thus, when one runsconda build
on such a skeleton, it fails with (full error at evhub/coconut#246)since
setuptools
tries to respect the environment markers, butconda
won't let it.This is a major problem for packages that use environment markers in their dependencies. It'd be great if this could be fixed, but until then, do you have any ideas for a suitable workaround?
The text was updated successfully, but these errors were encountered: