Skip to content

Never ignores numpy errors inside setup.py - #350

Closed
catap wants to merge 1 commit into
aubio:masterfrom
catap:patch-1
Closed

catap wants to merge 1 commit into
aubio:masterfrom
catap:patch-1

Conversation

@catap

@catap catap commented Nov 5, 2021

Copy link
Copy Markdown

aubio is useless without numpy and much better fail on attempt to build it when it can't be used instead to build and discover that it won't work.

`aubio` is useless without `numpy` and much better fail on attempt to build it when it can't be used instead to build and discover that it won't work.
@piem

piem commented Nov 8, 2021

Copy link
Copy Markdown
Member

hello,

this would fail installation for users who don't have numpy installed yet.

if you create virtualenv and install aubio with pip install aubio, numpy will be pulled because it is in setup_requires, not only install_requires. you might need to update distutils for this to work, but it does. with this patch, a user would get an ImportError.

cheers, piem

@piem piem closed this Nov 8, 2021
@catap

catap commented Nov 8, 2021

Copy link
Copy Markdown
Author

@piem but it will fails as soon as someone calls import aubio because of this line: https://github.com/aubio/aubio/blob/master/python/lib/aubio/__init__.py#L25

@piem

piem commented Nov 8, 2021

Copy link
Copy Markdown
Member

except at that point, numpy will already have been installed, unlike when entering setup.py

@catap

catap commented Nov 8, 2021

Copy link
Copy Markdown
Author

It is clear, yes.

@catap
catap deleted the patch-1 branch November 8, 2021 13:41
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