From 7ea1ec2fce1b9082164949ef600f46b57da39b86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Pszenny?= <pszenny@e-science.pl>
Date: Fri, 4 Nov 2022 16:57:32 +0000
Subject: [PATCH] Update setup.py so it can be run on python 3.7

---
 setup.py | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/setup.py b/setup.py
index 9817ec7..e42da29 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,8 @@ REQUIREMENTS = [
     'dataclasses;python_version<"3.7"',
     'jsonnet==0.15.0',
     'filelock==3.0',
-    'numpy==1.22.0',
+    'numpy==1.22.0;python_version>="3.8"',
+    'numpy==1.21.6;python_version<"3.8"',
     'overrides==3.1.0',
     'requests==2.23.0',
     'sentencepiece==0.1.83;python_version<"3.8"',
@@ -35,10 +36,11 @@ setup(
     url='https://gitlab.clarin-pl.eu/syntactic-tools/combo',
     keywords="nlp natural-language-processing dependency-parsing",
     setup_requires=['pytest-runner',
-    		    'pytest-pylint',
-                'scikit-learn==0.23.2',
-    		    'numpy==1.22.0',
-    		    'scipy==1.6.0;python_version>="3.7"'],
+    		        'pytest-pylint',
+                    'scikit-learn==0.23.2',
+    		        'numpy==1.22.0;python_version>="3.8"',
+                    'numpy==1.21.6;python_version<"3.8"',
+    		        'scipy==1.6.0;python_version>="3.7"'],
     tests_require=['pytest', 'pylint'],
     python_requires='>=3.6',
     package_data={'combo': ['config.graph.template.jsonnet', 'config.template.jsonnet']},
-- 
GitLab