Skip to content
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

Only require argparse when needed #10

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

uranusjr
Copy link
Contributor

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 case.

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

@jmcantrell
Copy link
Owner

Thanks for the patch, and for clueing me in to environment markers.

@jmcantrell jmcantrell closed this Oct 23, 2020
@jmcantrell jmcantrell reopened this Oct 23, 2020
@jmcantrell jmcantrell merged commit 018c3ed into jmcantrell:master Oct 23, 2020
@uranusjr uranusjr deleted the argparse-conditional branch October 23, 2020 07:06
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.

None yet

2 participants