Skip to content

Commit fd83ef7

Browse files
authored
Merge pull request #105 from Kojoley/fix-python-below-33-needs-backports-shutil_which
Python < 3.3 needs `backports.shutil_which`
2 parents fd4eb8b + 7f63d32 commit fd83ef7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from setuptools import setup, find_packages, Extension
22
import os, sys
33

4-
PY3 = sys.version_info[0] >= 3
54
IS_PYPY = '__pypy__' in sys.builtin_module_names
65

76
if IS_PYPY:
@@ -24,7 +23,7 @@
2423
extra_compile_args=extra_compile_args,
2524
libraries=[])]
2625

27-
if PY3:
26+
if sys.version_info[:2] >= (3, 3):
2827
extra_install_requires = []
2928
else:
3029
extra_install_requires = ["backports.shutil_which"]

0 commit comments

Comments
 (0)