Repository navigation
Fix astropy-helpers in master - #4179
Conversation
d158a24 to
538f815
Compare
|
Rebased after updating the submodule to include astropy/astropy-helpers@2f58cbe |
|
Seeing some better luck with this so far fingers crossed |
|
No, a5b1982 didn't fix it :/ |
a5b1982 to
3cdab87
Compare
|
Rolled back a5b1982 for a couple reasons. For one, it didn't fix the issue. And for another I'm pretty sure, after conferring with @astrofrog, that the problem is actually in a recent update to the conda package for 'wheel', and not anything having to do with the original issue this PR was intended to fix. |
|
Going to rebase now on #4180 |
3cdab87 to
4e66187
Compare
|
Still got although WCSAxes appears to have installed correctly... |
|
Weird. I can reproduce this locally. In a normal interpreter prompt I can import wcsaxes fine, but then it fails when running the docs build. Possibly something strange having to do with the way the plot directive execs the plot code (though if it's using exec it should be from within the same interpreter, and hence have all the same imports available...) |
|
I see now. It has something to do with |
… in astropy_helpers itself. This makes up for a bug introduced in astropy/astropy-helpers#184 where astropy_helpers.command.test attempts to import astropy (just to check whether a class is importable) but that causes things to go haywire if _ASTROPY_SETUP_ hasn't been set yet.
… that _ASTROPY_SETUP_ is set. We only actually use the astropy module itself in one place in this setup.py anyways.
4e66187 to
d001562
Compare
This fixes the issue I brought up on the mailing list yesterday (or at least works around it). This will be needed for any code that uses the latest version of astropy-helpers.
Fix to make sure that the
_ASTROPY_SETUP_global is set very early on in astropy_helpers itself. This makes up for a bug introduced in astropy/astropy-helpers#184 whereastropy_helpers.command.testattempts to import astropy (just to check whether a class is importable) but that causes things to go haywire if_ASTROPY_SETUP_hasn't been set yet.