Skip to content

Commit

Permalink
Add a check for python version in parallel to environment marker (#2813)
Browse files Browse the repository at this point in the history
* Add a check for python version in parallel to environment marker

* Update CHANGES
  • Loading branch information
asvetlov committed Mar 8, 2018
1 parent e0c1110 commit b867dae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES/2813.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Restore a imperative check in ``setup.py`` for python version. The
check works in parallel to environment marker. As effect a error about
unsupported Python versions is raised even on outdated systems with
very old ``setuptools`` version installed.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
from setuptools.command.test import test as TestCommand


if sys.version_info < (3, 5, 3):
raise RuntimeError("aiohttp 3.x requires Python 3.5.3+")


try:
from Cython.Build import cythonize
USE_CYTHON = True
Expand Down

0 comments on commit b867dae

Please sign in to comment.