Skip to content

Commit

Permalink
Specific dependencies for Python < 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mundya committed Oct 2, 2015
1 parent 8583cbc commit 3a23df2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import io
import re
from setuptools import setup, find_packages
import sys


def read_file(filename, **kwargs):
Expand Down Expand Up @@ -57,6 +58,12 @@ def get_new_url(url):
with open("rig/version.py", "r") as f:
exec(f.read())

# The requirements vary depending on the version of Python
requirements = ["numpy>1.6", "six", "sentinel", "pytz"]
if sys.version_info[0] < 3 or sys.version_info[1] < 4:
# Python versions < 3.4 require "enum34" to be installed
requirements.append("enum34")

setup(
name="rig",
version=__version__,
Expand Down Expand Up @@ -93,7 +100,7 @@ def get_new_url(url):
keywords="spinnaker placement routing graph fixed-point",

# Requirements
install_requires=["numpy>1.6", "six", "enum34", "sentinel", "pytz"],
install_requires=requirements,

# Scripts
entry_points={
Expand Down

0 comments on commit 3a23df2

Please sign in to comment.