From 3baa18b335a8a1b8f69ad9feb69f0b96c3f482d3 Mon Sep 17 00:00:00 2001
From: Pooja Babu
Date: Tue, 31 Oct 2023 16:24:59 +0100
Subject: [PATCH] Revert python version to 3.8
---
.github/workflows/nestml-build.yml | 22 +++++++++++-----------
doc/installation.rst | 2 +-
setup.py | 2 +-
3 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/nestml-build.yml b/.github/workflows/nestml-build.yml
index 707358c7d..b509e3d2f 100644
--- a/.github/workflows/nestml-build.yml
+++ b/.github/workflows/nestml-build.yml
@@ -29,10 +29,10 @@ jobs:
uses: actions/checkout@v3
# Setup Python version
- - name: Setup Python 3.9
+ - name: Setup Python 3.8
uses: actions/setup-python@v4
with:
- python-version: 3.9
+ python-version: 3.8
# Install dependencies
- name: Install apt dependencies
@@ -60,10 +60,10 @@ jobs:
uses: actions/checkout@v3
# Setup Python version
- - name: Setup Python 3.9
+ - name: Setup Python 3.8
uses: actions/setup-python@v4
with:
- python-version: 3.9
+ python-version: 3.8
# Install dependencies
- name: Install apt dependencies
@@ -99,7 +99,7 @@ jobs:
# Install NESTML
- name: Install NESTML
run: |
- export PYTHONPATH=${{ env.PYTHONPATH }}:${{ env.NEST_INSTALL }}/lib/python3.9/site-packages
+ export PYTHONPATH=${{ env.PYTHONPATH }}:${{ env.NEST_INSTALL }}/lib/python3.8/site-packages
#echo PYTHONPATH=`pwd` >> $GITHUB_ENV
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
python setup.py install
@@ -131,10 +131,10 @@ jobs:
uses: actions/checkout@v3
# Setup Python version
- - name: Setup Python 3.9
+ - name: Setup Python 3.8
uses: actions/setup-python@v4
with:
- python-version: 3.9
+ python-version: 3.8
# Install dependencies
- name: Install apt dependencies
@@ -188,7 +188,7 @@ jobs:
# Install NESTML (repeated)
- name: Install NESTML
run: |
- export PYTHONPATH=${{ env.PYTHONPATH }}:${{ env.NEST_INSTALL }}/lib/python3.9/site-packages
+ export PYTHONPATH=${{ env.PYTHONPATH }}:${{ env.NEST_INSTALL }}/lib/python3.8/site-packages
#echo PYTHONPATH=`pwd` >> $GITHUB_ENV
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
python setup.py install
@@ -262,10 +262,10 @@ jobs:
uses: actions/checkout@v3
# Setup Python version
- - name: Setup Python 3.9
+ - name: Setup Python 3.8
uses: actions/setup-python@v4
with:
- python-version: 3.9
+ python-version: 3.8
# Install dependencies
- name: Install apt dependencies
@@ -301,7 +301,7 @@ jobs:
# Install NESTML (repeated)
- name: Install NESTML
run: |
- export PYTHONPATH=${{ env.PYTHONPATH }}:${{ env.NEST_INSTALL }}/lib/python3.9/site-packages
+ export PYTHONPATH=${{ env.PYTHONPATH }}:${{ env.NEST_INSTALL }}/lib/python3.8/site-packages
#echo PYTHONPATH=`pwd` >> $GITHUB_ENV
echo "PYTHONPATH=$PYTHONPATH" >> $GITHUB_ENV
python setup.py install
diff --git a/doc/installation.rst b/doc/installation.rst
index c28ae65dd..829127e2a 100644
--- a/doc/installation.rst
+++ b/doc/installation.rst
@@ -1,7 +1,7 @@
Installing NESTML
=================
-Please note that only Python 3.9 (and later versions) are supported. The instructions below assume that ``python`` is aliased to or refers to ``python3``, and ``pip`` to ``pip3``.
+Please note that only Python 3.8 (and later versions) are supported. The instructions below assume that ``python`` is aliased to or refers to ``python3``, and ``pip`` to ``pip3``.
Installing the latest release from PyPI
---------------------------------------
diff --git a/setup.py b/setup.py
index 9cfe0b8b7..dd28da475 100755
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@
import sys
from setuptools import setup, find_packages
-assert sys.version_info.major >= 3 and sys.version_info.minor >= 9, "Python 3.9 or higher is required to run NESTML"
+assert sys.version_info.major >= 3 and sys.version_info.minor >= 8, "Python 3.8 or higher is required to run NESTML"
with open("requirements.txt") as f:
requirements = f.read().splitlines()