-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get --debug flag from sys.argv instead of using an astropy helpers routine #9731
Conversation
Env var is no fun on Windows, but I guess it is a small price to pay for simplification, so 👍 |
Maybe Changes look good otherwise. |
If we want we could actually add back command-line flags in |
I had been wondering about being able to set defaults in |
a8f8d67
to
435b11b
Compare
@mhvk - I like your suggestion for the variable name but then I thought maybe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the name, and it all looks good.
Not sure about this one: |
Ah, so |
Yes indeed |
I wasted the better part of an hour only to come to your conclusion, that the p.s. As far as I can see, |
435b11b
to
00bdc55
Compare
00bdc55
to
632e34a
Compare
Ok I've updated this to look for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super, let's go this way!
The failure seems unrelated but real. Maybe a rebase is needed? |
This is already rebased, very confused by the failure... |
It's a race condition because two doctests are using the filename values.dat (the 32-bit build is also the parallel build). I think we should not include that fix here though since that will likely need to be backported. I'll open a separate PR. |
See #9800 for the (unrelated) 32-bit failure. |
I'm going to go ahead and merge this since it was approved and the 32-bit failure is unrelated - and APE 17 has been merged. |
This is a self-contained subset of changes related to the APE A roadmap for package infrastructure without astropy-helpers. This PR as-is is ready for review, and does not actually require removing astropy-helpers to work, though I think we should maybe wait until Tuesday to merge since that's when we'll be discussing the APE in Socorro.
Previously, the presence of the
--debug
flag tosetup.py
was used to control whether certain warnings should be shown or not when compiling theio.fits
andwcs
extensions. For similar reasons to #9730 it makes more sense to switch to using an environment variable to control this. Note that this is not a documented feature, hence why there are no changes to the docs.I'm not super happy with the variable name so far, so am open to other suggestions - @mhvk?
EDIT: changed to getting
--debug
fromsys.argv