diff --git a/.github/build/linux/cpymad.sh b/.github/build/linux/cpymad.sh index 75c04733..fa09f45e 100755 --- a/.github/build/linux/cpymad.sh +++ b/.github/build/linux/cpymad.sh @@ -23,7 +23,9 @@ export LDFLAGS="-fno-lto" python setup.py sdist for PYBIN in /opt/python/cp3*/bin; do - "${PYBIN}/pip" wheel dist/*.tar.gz --no-deps -w rawdist/ + if "${PYBIN}/python" -c "import sys;exit(sys.version_info<(3,8))"; then + "${PYBIN}/pip" wheel dist/*.tar.gz --no-deps -w rawdist/ + fi done # Bundle external shared libraries into the wheels diff --git a/src/cpymad/__init__.py b/src/cpymad/__init__.py index 82ca2a73..d68ad005 100644 --- a/src/cpymad/__init__.py +++ b/src/cpymad/__init__.py @@ -21,9 +21,9 @@ """ -if sys.version_info < (3, 8): +if sys.version_info < (3, 9): _unsupported_version = ( - "Support for python 3.7 and below will be removed in a future release!\n" + "Support for python 3.8 and below will be removed in a future release!\n" "If you need continued support for an older version, let us know at:\n" " https://github.com/hibtc/cpymad/issues") warnings.warn(_unsupported_version, DeprecationWarning)