Skip to content

Commit

Permalink
ENH: Warn on unsupported Python 3.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Oct 4, 2020
1 parent 88eda2f commit f3a6b33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import sys
import subprocess
import textwrap
import sysconfig
import warnings


if sys.version_info[:2] < (3, 6):
Expand Down Expand Up @@ -59,6 +59,13 @@
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():
Expand Down

0 comments on commit f3a6b33

Please sign in to comment.