From cf42e122155956773cd8951e8450887a7ce00142 Mon Sep 17 00:00:00 2001 From: Aleksandr Yeganov Date: Fri, 12 May 2017 14:35:22 -0400 Subject: [PATCH] Update setup.py for Windows Service deps --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6a814f1ed..c52e37125 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,4 @@ +import os import sys from setuptools import setup, find_packages from circus import __version__ @@ -5,8 +6,12 @@ if not hasattr(sys, 'version_info') or sys.version_info < (2, 6, 0, 'final'): raise SystemExit("Circus requires Python 2.6 or higher.") +IS_WINDOWS = os.name == 'nt' -install_requires = ['psutil', 'pyzmq>=13.1.0', 'tornado>=3.0', 'six'] +if IS_WINDOWS: + install_requires = ['psutil', 'pyzmq>=13.1.0', 'tornado>=3.0', 'six', 'PyMI'] +else: + install_requires = ['psutil', 'pyzmq>=13.1.0', 'tornado>=3.0', 'six'] try: import argparse # NOQA