Skip to content

Commit

Permalink
Fix setup.py for systems with older setuptools. (#703)
Browse files Browse the repository at this point in the history
* User safer platform detection in setup.py dependency declaration.

* Rev patch version number.
  • Loading branch information
jettisonjoe authored and Kenadia committed Jan 19, 2018
1 parent 655151d commit b959633
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def run(self):

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



class PyTestCommand(test):
Expand Down Expand Up @@ -174,7 +178,7 @@ def run_tests(self):

setup(
name='openhtf',
version='1.2.0',
version='1.2.1',
description='OpenHTF, the open hardware testing framework.',
author='John Hawley',
author_email='[email protected]',
Expand Down

0 comments on commit b959633

Please sign in to comment.