Skip to content

Fix for "python setup.py --help" - #49

Merged
eteq merged 1 commit into
astropy:masterfrom
eteq:setup-help-bugfix
Nov 7, 2011
Merged

eteq merged 1 commit into
astropy:masterfrom
eteq:setup-help-bugfix

Conversation

@eteq

@eteq eteq commented Nov 6, 2011

Copy link
Copy Markdown
Member

In the current version, python setup.py --help leads to a traceback, due to setup_helpers triggering a bug (or perhaps feature?) in distutils. This patch gets around it by simply catching the exception distutils throws and continuing on with the astropy script.

This is quite simple, but I'm not entirely sure what this function is used for, so @iguananaut may want to glance at it before I merge it.

@mdboom

mdboom commented Nov 7, 2011

Copy link
Copy Markdown
Contributor

Looks good to me.

Comment thread astropy/setup_helpers.py

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also be except (DistutilsError, AttributeError):, but either way...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I thought about that, but it seemed clearer to leave a comment explaining the situation in a separate except block.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough.

eteq added a commit that referenced this pull request Nov 7, 2011
Fixes traceback triggered by "setup.py --help"
@eteq
eteq merged commit 08d69b3 into astropy:master Nov 7, 2011
keflavich pushed a commit to keflavich/astropy that referenced this pull request Oct 9, 2013
Fixes traceback triggered by "setup.py --help"
mwcraig pushed a commit to mwcraig/astropy that referenced this pull request Jun 6, 2014
embray added a commit to embray/astropy that referenced this pull request Jan 23, 2015
…-2-1

Update minimum Sphinx version to 1.2.1
Cadair added a commit to Cadair/astropy that referenced this pull request Dec 23, 2022
jeffjennings pushed a commit to jeffjennings/astropy that referenced this pull request Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants