diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2020-10-04 12:09:52 +0300 |
---|---|---|
committer | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2020-10-04 12:49:38 +0300 |
commit | f3a6b33144e62ce77aa767b73d930dec420a3511 (patch) | |
tree | 398aa80786dd06b15097cc2cbccfd2c78705a665 /setup.py | |
parent | 88eda2f2f430e2f3b7e580fe38ac31e4c5fac942 (diff) | |
download | numpy-f3a6b33144e62ce77aa767b73d930dec420a3511.tar.gz |
ENH: Warn on unsupported Python 3.9+
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -23,7 +23,7 @@ import os import sys import subprocess import textwrap -import sysconfig +import warnings if sys.version_info[:2] < (3, 6): @@ -59,6 +59,13 @@ MICRO = 0 ISRELEASED = False VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO) +if sys.version_info >= (3, 9): + warnings.warn( + f"NumPy {VERSION} does not support Python " + f"{sys.version_info.major}.{sys.version_info.minor}.", + RuntimeWarning, + ) + # Return the git revision as a string def git_version(): |