mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +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
15
setup.py
15
setup.py
|
|
@ -1,7 +1,14 @@
|
||||||
try:
|
import sys
|
||||||
from setuptools import setup
|
|
||||||
except ImportError:
|
ispy3 = sys.version_info[0] == 3
|
||||||
from distutils.core import setup # NOQA
|
|
||||||
|
if ispy3:
|
||||||
|
from distutils.core import setup
|
||||||
|
else:
|
||||||
|
try:
|
||||||
|
from setuptools import setup
|
||||||
|
except ImportError:
|
||||||
|
from distutils.core import setup # NOQA
|
||||||
|
|
||||||
from flake8 import __version__
|
from flake8 import __version__
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue