-
-
Notifications
You must be signed in to change notification settings - Fork 43
Running setup.py in affiliated package is not possible unless numpy is already installed #402
Comments
Normally the way this should work is that if numpy is in |
The proper solution is of course #334 but I think it might still be a while until we can rely on that. |
@astrofrog this problem occurs even if |
numpy should be in |
|
@saimn then this should be part of the package template, but it is not currently. |
@drdavella - probably because it is useful only if you build a C/Cython extension using Numpy. But it could be mentioned somewhere. |
@saimn I'm not sure that's true. This issue occurs for me with a new package created from cookiecutter that does not have any C extensions. |
Ah indeed it is called even when this is not required: astropy-helpers/astropy_helpers/commands/build_ext.py Lines 289 to 297 in 7f11678
This call should be moved in the loop, after the |
there may be still tons of issues with the cookiecutter, so issues and especially PRs are very much welcome for the template. |
@bsipocz I think the change here means no change in |
In a clean environment, running
setup.py
in any affiliated package will cause something like the error listed below. This is obviously unintuitive and undesirable behavior.EDIT: This apparently only affects
setup.py install/develop
, but notsetup.py egg_info
, which is why it has not been detected in Astropy's CI builds.It's not yet clear to me yet whether this can be fixed by putting some
try/except
logic around the imports below (and possibly elsewhere), or whether this is a more fundamental problem with the helpers strategy:astropy-helpers/astropy_helpers/utils.py
Lines 59 to 79 in e2b5151
The text was updated successfully, but these errors were encountered: