mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-14 00:14:46 +00:00
removing setuptools dep for py3 and install
This commit is contained in:
parent
aa4a855c38
commit
232fc33060
1 changed files with 11 additions and 4 deletions
7
setup.py
7
setup.py
|
|
@ -1,3 +1,10 @@
|
||||||
|
import sys
|
||||||
|
|
||||||
|
ispy3 = sys.version_info[0] == 3
|
||||||
|
|
||||||
|
if ispy3:
|
||||||
|
from distutils.core import setup
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue