hippke / tls

Transit Least Squares: An optimized transit-fitting algorithm to search for periodic transits of small planets
MIT License
48 stars 25 forks source link

Only require argparse when needed #99

Closed astrojose9 closed 2 years ago

astrojose9 commented 2 years ago

argparse is available in the stdlib in all non-ancient Python versions (2.7+), and installing it is pointless because the stdlib copy always takes precedence. The name conflict, however, causes problems in some edge cases and makes installing packages depending on TransitLeastSquares impossible.

This patch adds an environment marker, so the library is only pulled in when argparse is not present.

Thank you for your contribution to TLS. Before submitting this PR, please make sure:

hippke commented 2 years ago

Thank you!