Skip to content

BLD: don't mask compile errors in setup.py #197

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

Merged

Conversation

llllllllll
Copy link
Contributor

@llllllllll llllllllll commented Aug 22, 2019

pip will not display stdio unless setup.py exits with failure. The current
technique of attempting to compile, then falling back to installing without
extensions doesn't report anything to the user, which can lead to confusion when
certain codecs aren't visible.

This change just removes the fallback, if users would like to install without
extensions, they must pass the (existing) DISABLE_NUMCODECS_CEXT=1 envvar.

Closes #196

TODO:

  • Unit tests and/or doctests in docstrings
  • tox -e py37 passes locally
  • tox -e py27 passes locally
  • Docstrings and API docs for any new/modified user-facing classes and functions
  • Changes documented in docs/release.rst
  • tox -e docs passes locally
  • AppVeyor and Travis CI passes
  • Test coverage to 100% (Coveralls passes)

pip will not display stdio unless setup.py exits with failure. The current
technique of attempting to compile, then falling back to installing without
extensions doesn't report anything to the user, which can lead to confusion when
certain codecs aren't visible.

This change just removes the fallback, if users would like to install without
extensions, they must pass the (existing) `DISABLE_NUMCODECS_CEXT=1` envvar.
@wrobell
Copy link

wrobell commented Sep 27, 2019

I was hit by this issue again - after installing Zarr on a new machine, expected codecs were not available. IMHO, it would be great if this got merged.

@jakirkham
Copy link
Member

Could you please add a changelog entry? Then we can merge. 😄

@jakirkham jakirkham merged commit 65013ad into zarr-developers:master Nov 4, 2019
@jakirkham
Copy link
Member

Thanks @llllllllll! 😄

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.

User experience around failed compilation
3 participants