diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-12-17 19:50:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-12-17 19:50:02 +0000 |
| commit | 40958981df401a898a39ddad45c2b48669a44ee7 (patch) | |
| tree | 354ee65ef897d17c170d4ad0ba7e6f7c35288634 | |
| parent | dc7bff2e738e5259e51bbb612ffcbae00b5505e6 (diff) | |
Support CLI on Python 2.6
| -rw-r--r-- | setup.py | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,11 +1,20 @@ #!/usr/bin/env python import os +import sys from distutils.core import setup def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() + +_install_requires = [ + "parsimonious>=0.5,<0.6", +] + +if sys.version_info[:2] <= (2, 6): + _install_requires.append("argparse==1.2.1") + setup( name='mammoth', version='0.1.1', @@ -17,8 +26,6 @@ setup( packages=['mammoth', 'mammoth.docx', 'mammoth.style_reader'], scripts=["scripts/mammoth"], keywords="docx word office clean html", - install_requires=[ - "parsimonious>=0.5,<0.6", - ] + install_requires=_install_requires, ) |
