Skip to content

Commit b959633

Browse files
jettisonjoeKenadia
authored andcommitted
Fix setup.py for systems with older setuptools. (#703)
* User safer platform detection in setup.py dependency declaration. * Rev patch version number.
1 parent 655151d commit b959633

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def run(self):
126126

127127
INSTALL_REQUIRES = [
128128
'contextlib2>=0.5.1,<1.0',
129-
'enum34>=1.1.2,<2.0;python_version<"3.4"',
130129
'future>=0.16.0',
131130
'mutablerecords>=0.4.1,<2.0',
132131
'oauth2client>=1.5.2,<2.0',
@@ -136,6 +135,11 @@ def run(self):
136135
'sockjs-tornado>=1.0.3,<2.0',
137136
'tornado>=4.3,<5.0',
138137
]
138+
# Not all versions of setuptools support semicolon syntax for specifying
139+
# platform-specific dependencies, so we do it the old school way.
140+
if sys.version_info < (3,4):
141+
INSTALL_REQUIRES.append('enum34>=1.1.2,<2.0')
142+
139143

140144

141145
class PyTestCommand(test):
@@ -174,7 +178,7 @@ def run_tests(self):
174178

175179
setup(
176180
name='openhtf',
177-
version='1.2.0',
181+
version='1.2.1',
178182
description='OpenHTF, the open hardware testing framework.',
179183
author='John Hawley',
180184
author_email='[email protected]',

0 commit comments

Comments
 (0)