diff --git a/setup.py b/setup.py index 5313914..f849606 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,6 @@ # read the contents of README file from os import path -import sys this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() @@ -17,12 +16,10 @@ f = open("PYML_VERSION", "r") pymeshlabversion = f.read() -install_requires = ['numpy'] - -# if on windows, add msvc-runtime as dependency -osused = platform.system() -if osused == 'Windows': - install_requires.append('msvc-runtime') +install_requires = [ + 'numpy', + 'msvc-runtime ; platform_system == "Windows"', +] try: from wheel.bdist_wheel import bdist_wheel as _bdist_wheel