This is discussed in part in #5 by @astrofrog - we want python setup.py egg_info to always work for affiliated packages, even if astropy is not yet installed. Currently that's not the case because import astropy is in setup.py.
Perhaps the way around it is to put a try/except ImportError around the astropy import and subsequent code, and then have a stripped-down setup function in the except that only includes things like the package name and description? The build/install should always fail if astropy is missing due to install_requires='astropy, but egg_info will then work. (Although distutils has bitten me many times on "should".)
This is discussed in part in #5 by @astrofrog - we want
python setup.py egg_info
to always work for affiliated packages, even ifastropy
is not yet installed. Currently that's not the case becauseimport astropy
is insetup.py
.Perhaps the way around it is to put a
try
/except ImportError
around the astropy import and subsequent code, and then have a stripped-downsetup
function in the except that only includes things like the package name and description? The build/install should always fail if astropy is missing due toinstall_requires='astropy
, butegg_info
will then work. (Althoughdistutils
has bitten me many times on "should".)@iguananaut - do you have any thoughts here?