Skip to content

Commit

Permalink
Require argparse for Python's < 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
schmichael committed Jan 17, 2012
1 parent 062f15f commit b748cd8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion setup.py
Expand Up @@ -9,6 +9,14 @@
else:
exts = []

requirements = ['Flask']

try:
import argparse
except ImportError:
# We're probably on Python <2.7, add argparse as a requirement
requirements.append('argparse')

setup(
name='mmstats',
url='https://github.com/schmichael/mmstats',
Expand All @@ -28,7 +36,7 @@
],
},
ext_modules=exts,
install_requires=['Flask'],
install_requires=requirements,
classifiers=['License :: OSI Approved :: BSD License'],
zip_safe=False,
)

0 comments on commit b748cd8

Please sign in to comment.