diff --git a/requirements.txt b/requirements.txt index de8d5325cb544143039df1b58cdac1424f600263..59a957b7fc1dcef0379ff9dc852d71b5acfc2cef 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ matplotlib==3.1.0 numpy==1.16.4 pandas==0.24.2 PyQt5==5.12.3 -pywin32==224 scipy==1.3.0 simplekml==1.3.1 Sphinx==2.1.2 diff --git a/setup.py b/setup.py index f8b7864a892b52b3f5d7410a7cd8902d8ef25cb9..82b6d611b0212084460adc65783bc5b4fdeefa11 100644 --- a/setup.py +++ b/setup.py @@ -2,6 +2,8 @@ from setuptools import setup from sphinx.setup_command import BuildDoc +import platform + name = 'FluEgg' version = '0.0' release = '0.0.0' @@ -10,6 +12,11 @@ docs_source = 'docs/' docs_build_dir = 'docs/_build' docs_builder = 'html' +install_requirements = ['numpy', 'scipy', 'pandas', 'h5py'] + +if platform.system() is 'Windows': + install_requirements.append('pywin32') + setup( name=name, version=release, @@ -26,7 +33,7 @@ setup( 'Programming Language :: Python 3.6' ], python_requires='>=3', - install_requires=['numpy', 'scipy', 'pandas', 'h5py'], + install_requires=install_requirements, command_options={ 'build_sphinx': { 'project': ('setup.py', name),