From 5cec341f734e0d40115ce59b45b88926bd6481fc Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Fri, 6 Feb 2015 13:16:55 +0100 Subject: [PATCH] Add missing dependencies and their repositories - By adding the dependency_links statement, setup.py can now automatically fetch gbulb and cairoplot3 and install them. This makes users life easier. --- setup.py | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 563423607..a6b2672c9 100755 --- a/setup.py +++ b/setup.py @@ -4,6 +4,14 @@ from setuptools import setup, find_packages import os +requirements = [ + "sphinx", "sphinx-argparse", "pyserial", "numpy", "scipy", + "python-dateutil", "prettytable", "h5py" + ] +if os.name != 'nt': + requirements += ["pygobject", "gbulb", "cairoplot"] + + setup( name="artiq", version="0.0+dev", @@ -13,12 +21,12 @@ setup( description="A control system for trapped-ion experiments", long_description=open("README.rst").read(), license="BSD", - install_requires=[ - "sphinx", "sphinx-argparse", "pyserial", "numpy", "scipy", - "python-dateutil", "prettytable", "h5py" - ], + install_requires=requirements, extras_require={}, - dependency_links=[], + dependency_links=[ + "git+https://github.com/m-labs/gbulb.git#egg=gbulb", + "git+https://github.com/m-labs/cairoplot3.git#egg=cairoplot" + ], packages=find_packages(), namespace_packages=[], test_suite="artiq.test",