mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +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 = {}
|
||||
scripts = ["flake8/flake8"]
|
||||
if ispy3:
|
||||
from distutils.core import setup # NOQA
|
||||
if iswin:
|
||||
scripts.append("scripts/flake8.cmd")
|
||||
try:
|
||||
from setuptools import setup # NOQA
|
||||
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:
|
||||
try:
|
||||
from setuptools import setup # NOQA
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue