From 8f5f962f0685b8f41b53020bb9b025ea3881ab69 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Mon, 22 Dec 2025 18:26:15 +0000 Subject: [PATCH] consistent cross-platform metadata --- setup.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) 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