mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 03:06:53 +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:
|
||||
from setuptools import setup
|
||||
except ImportError:
|
||||
from distutils.core import setup # NOQA
|
||||
import sys
|
||||
|
||||
ispy3 = sys.version_info[0] == 3
|
||||
|
||||
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__
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue