astropy / package-template

Template for packages that use Astropy. Maintainer: @astrofrog
http://docs.astropy.org/projects/package-template/en/latest/
Other
60 stars 62 forks source link

Make `egg_info` work even when `astropy` is not installed #16

Closed eteq closed 10 years ago

eteq commented 11 years ago

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".)

@iguananaut - do you have any thoughts here?

embray commented 11 years ago

Not sure. I'll have to give this one some thought.

cdeil commented 10 years ago

This has been achieved by astropy-helpers, no? Can this issue be closed?

astrofrog commented 10 years ago

@cdeil - indeed, thanks!