Get --debug flag from sys.argv instead of using an astropy helpers routine#9731
Get --debug flag from sys.argv instead of using an astropy helpers routine#9731astrofrog merged 1 commit intoastropy:masterfrom
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 |
mhvk
left a comment
There was a problem hiding this comment.
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 |
|
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
--debugflag tosetup.pywas used to control whether certain warnings should be shown or not when compiling theio.fitsandwcsextensions. 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
--debugfromsys.argv