Skip to content

Commit 9797cce

Browse files
authored
Merge pull request #451 from dimbleby/consistent-metadata
consistent cross-platform metadata
2 parents 652796a + 732e409 commit 9797cce

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

setup.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,17 @@
99

1010
# read the contents of README file
1111
from os import path
12-
import sys
1312
this_directory = path.abspath(path.dirname(__file__))
1413
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
1514
long_description = f.read()
1615

1716
f = open("PYML_VERSION", "r")
1817
pymeshlabversion = f.read()
1918

20-
install_requires = ['numpy']
21-
22-
# if on windows, add msvc-runtime as dependency
23-
osused = platform.system()
24-
if osused == 'Windows':
25-
install_requires.append('msvc-runtime')
19+
install_requires = [
20+
'numpy',
21+
'msvc-runtime ; platform_system == "Windows"',
22+
]
2623

2724
try:
2825
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel

0 commit comments

Comments
 (0)