Skip to content

Commit 76166f8

Browse files
authored
Only include argparse for python version 3.1 and below in setup.py (awslabs#333)
1 parent fdb3bc8 commit 76166f8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,11 @@
4444
JAR_DIRECTORY = os.path.join(PACKAGE_NAME, 'jars')
4545
PACKAGE_VERSION = '3.1.2'
4646
PYTHON_REQUIREMENTS = [
47-
'boto3',
48-
# argparse is part of python2.7 but must be declared for python2.6
49-
'argparse',
47+
"boto3",
48+
# argparse is part of python3.2+
49+
"argparse; python_version <= '3.1'" ,
5050
]
51+
5152
REMOTE_MAVEN_PACKAGES_FILE = 'pom.xml'
5253

5354
class MavenJarDownloader:

0 commit comments

Comments
 (0)