mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-08 14:04:16 +00:00
added entry_point for flake8 on py3
This commit is contained in:
parent
4cc6f1dd66
commit
4f95dc317b
2 changed files with 11 additions and 7 deletions
|
|
@ -1,4 +0,0 @@
|
||||||
include CONTRIBUTORS.txt
|
|
||||||
include README
|
|
||||||
include LICENSE
|
|
||||||
recursive-include scripts flake8.*
|
|
||||||
14
setup.py
14
setup.py
|
|
@ -7,9 +7,17 @@ iswin = os.name == 'nt'
|
||||||
kwargs = {}
|
kwargs = {}
|
||||||
scripts = ["flake8/flake8"]
|
scripts = ["flake8/flake8"]
|
||||||
if ispy3:
|
if ispy3:
|
||||||
from distutils.core import setup # NOQA
|
try:
|
||||||
if iswin:
|
from setuptools import setup # NOQA
|
||||||
scripts.append("scripts/flake8.cmd")
|
kwargs = {
|
||||||
|
'entry_points': {
|
||||||
|
'console_scripts': ['flake8 = flake8.main:main']
|
||||||
|
},
|
||||||
|
}
|
||||||
|
except ImportError:
|
||||||
|
from distutils.core import setup # NOQA
|
||||||
|
if iswin:
|
||||||
|
scripts.append("scripts/flake8.cmd")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
from setuptools import setup # NOQA
|
from setuptools import setup # NOQA
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue