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

PyPI skeleton not coping well with environment markers? #3000

Closed
msarahan opened this issue Jul 4, 2018 · 1 comment · Fixed by #2972
Closed

PyPI skeleton not coping well with environment markers? #3000

msarahan opened this issue Jul 4, 2018 · 1 comment · Fixed by #2972
Labels
locked [bot] locked due to inactivity

Comments

@msarahan
Copy link
Contributor

msarahan commented Jul 4, 2018

hdf5storage is failing in our test suite right now, with errors like

Traceback (most recent call last):
  File "/home/travis/build/conda/conda-build/tests/test_api_skeleton.py", line 150, in test_setuptools_test_requirements
    api.skeletonize(packages='hdf5storage', repo='pypi')
  File "/home/travis/build/conda/conda-build/conda_build/api.py", line 281, in skeletonize
    recursive=recursive, config=config, **kwargs)
  File "/home/travis/build/conda/conda-build/conda_build/skeletons/pypi.py", line 274, in skeletonize
    setup_options=setup_options)
  File "/home/travis/build/conda/conda-build/conda_build/skeletons/pypi.py", line 737, in get_package_metadata
    sys.exit("Error: Could not parse: %s" % dep)
SystemExit: Error: Could not parse: numpy ; python_version == '2.7'

The requirements coming out look like:

"numpy < 1.12.0 ; python_version == '2.6'", "numpy ; python_version == '2.7'", "numpy<1.6.0 ; python_version == '3.0'", "numpy<1.8.0 ; python_version == '3.1'", "numpy<1.12.0 ; python_version == '3.2'", "numpy<1.12.0 ; python_version == '3.3'", "numpy ; python_version >= '3.4'", "h5py>=2.1 ; python_version == '2.6'", "h5py>=2.1 ; python_version == '2.7'", "h5py>=2.1,<2.4 ; python_version == '3.0'", "h5py>=2.1,<2.7 ; python_version == '3.1'", "h5py>=2.1,<2.7 ; python_version == '3.2'", "h5py>=2.1 ; python_version >= '3.3'"

these need to be translated into deps that conda-build understands.

@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically locked because it has not had recent activity after being closed.

Please open a new issue if needed.

Thanks!

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 14, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant