added entry_point for flake8 on py3

This commit is contained in:
mrtheb 2013-02-09 22:19:26 -05:00
parent 4cc6f1dd66
commit 4f95dc317b
2 changed files with 11 additions and 7 deletions

View file

@ -1,4 +0,0 @@
include CONTRIBUTORS.txt
include README
include LICENSE
recursive-include scripts flake8.*

View file

@ -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