-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix setup.py for systems with older setuptools. (#703)
* User safer platform detection in setup.py dependency declaration. * Rev patch version number.
- Loading branch information
1 parent
655151d
commit b959633
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', | ||
|
@@ -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): | ||
|
@@ -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]', | ||
|