Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit b3cf9cf

Browse files
ssbarneaasvetlov
authored andcommitted
Added version check to prevent installation on Python < 3.3.0 (#387)
Signed-off-by: Sorin Sbarnea <sorin.sbarnea@gmail.com>
1 parent f3fd759 commit b3cf9cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111
# - hg ci && hg push
1212

1313
import os
14+
import sys
1415
try:
1516
from setuptools import setup, Extension
1617
except ImportError:
1718
# Use distutils.core as a fallback.
1819
# We won't be able to build the Wheel file on Windows.
1920
from distutils.core import setup, Extension
2021

22+
if sys.version_info < (3, 3, 0):
23+
raise RuntimeError("asyncio requires Python 3.3.0+")
24+
2125
extensions = []
2226
if os.name == 'nt':
2327
ext = Extension(

0 commit comments

Comments
 (0)