Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
Added argparse requirement if python version is below 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
eriky committed Aug 2, 2013
1 parent 3bef7ed commit 01dbca9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup.py
@@ -1,10 +1,16 @@
#!/usr/bin/env python

from distutils.core import setup
from sys import version_info

with open('README.rst') as file:
long_description = file.read()

install_requires = ['requests']

if not (version_info.major == 2 and version_info.minor >=7):
install_requires.append('argparse')

setup(name='ESClient',
version="0.5.6",
description='A lightweight Python client for ElasticSearch, including a dump and import tool for indexes',
Expand All @@ -14,7 +20,7 @@
py_modules=['esclient'],
license='New BSD license',
keywords = ["elasticsearch"],
install_requires = ['requests'],
install_requires = install_requires,
scripts = ['bin/esdump', 'bin/esimport'],
classifiers=[
'Development Status :: 4 - Beta',
Expand All @@ -26,4 +32,4 @@
'Topic :: Internet :: WWW/HTTP :: Indexing/Search'
],
long_description = long_description
)
)

0 comments on commit 01dbca9

Please sign in to comment.