From 183cd3650e58fe929240c7aa22c7336152a57ad7 Mon Sep 17 00:00:00 2001 From: Andy Trofimov Date: Sun, 21 Apr 2024 15:55:53 +0500 Subject: [PATCH] Fix Windows builds bug --- setup.py | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 1abc31b..043fa55 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ import distutils.cmd import pathlib import re +import sys from setuptools import setup @@ -106,13 +107,17 @@ def run(self): 'gui': [ 'PySimpleGUI==4.59.0', ], - 'dev': [ - 'pyinstaller>=6.6.0', - 'pytest>=6.2,<8', - 'tox>=3.5,<4', - 'pre-commit>=2.6', - 'wheel>=0.36.2,<0.38', - ], + 'dev': ( + ["pyinstaller>=5.0,<5.7.0"] + if sys.platform.startswith("win") + else ["pyinstaller>=6.6.0"] + + [ + "pytest>=6.2,<8", + "tox>=3.5,<4", + "pre-commit>=2.6", + "wheel>=0.36.2,<0.38", + ] + ), }, classifiers=[ "Topic :: Internet",