Closed astrofrog closed 10 years ago
That's tricky. For what it's worth I fixed this problem a while ago in setuptools, but the fix was rolled back since it introduced another bug. I never had time to go back and fully fix it but I don't remember the details
https://bitbucket.org/pypa/setuptools/issue/141/setup_requires-feature-does-not-handle
Though is possible this is fixed by #45 ? If so the only thing to do is make sure to update WCSAxes, and older versions of WCSAxes with an older dependency of astropy-helpers will just be out of luck.
(in any case, why is it bringing in a release candidate?)
I have no idea why it's bringing in a release candidate, this is what really puzzled me!
Is it possible this is an issue with your environment? Did you install some old version of astropy_helpers into your site packages by accident?
It appears that the copy of astropy_helpers included in the latest source distribution of wcsaxes on PyPI is in fact 0.4rc1.devsomethingorother, and the way it's set up a package will try to use the astropy_helpers it is bundled with first.
And the fix for #45 didn't show up until astropy-helpers 0.4rc2 so that wcsaxes release wouldn't have it.
@embray - ah, I see! This was on RTD so maybe it was using an old version of setuptools. This all makes sense now, thanks! Closing since this is a solved problem :)
I'm not sure it matters what version of setuptools you were using, because the workaround I added to astropy-helpers was meant to work around this issue on any version of setuptools. But for the workaround to work then of course your package needs to be bundled with some minimal version of astropy-helpers. It can't even auto-update the astropy-helpers on that old version because that's exactly where this problem occurs.
@embray - thanks for the clarification - this is not an issue, I'll just release a new version of WCSAxes with the latest astropy-helpers.
On RTD, I've seen the following error - when RTD installs dependencies it does
pip install -r requirements.txt
and requirements for pyregion are:The last one is an affiliated package. RTD then crashes with the following error:
I cannot reproduce this locally. @embray, do you have any idea what might be going on? The latest release of WCSAxes uses an older version of astropy-helpers than the one astropy uses but I wouldn't have thought that would matter?