From a735cf90640899bc83a57f7b079b100f61f56e41 Mon Sep 17 00:00:00 2001 From: asettouf Date: Tue, 26 Sep 2017 22:55:21 +0200 Subject: [PATCH] Add requires pywin32 only for Windows --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index ef9d927..6a6320a 100644 --- a/setup.py +++ b/setup.py @@ -1,5 +1,10 @@ from distutils.core import setup from os.path import exists +from platform import system + +requires = [] +if system == "Windows": + requires = ["pypiwin32"] setup( name = "fsmonitor", @@ -11,8 +16,6 @@ author_email = "luke@iogopro.co.uk", licence="MIT", url = "http://github.com/shaurz/fsmonitor", - install_requires=[ - 'pypiwin32', - ], + install_requires=requires, packages = ["fsmonitor"], )