flake8/setup.py
Peter Teichman c6ac38cd70 Incorporate patch review on Flake8Command
* add a note about the setuptools command to README
* don't install the Flake8Command entry point without setuptools
* fix a bug in Flake8Command that might cause double checking
  of files in 'packages'
2012-09-12 18:44:24 -04:00

42 lines
1.1 KiB
Python
Executable file

import sys
ispy3 = sys.version_info[0] == 3
issetuptools = False
if ispy3:
from distutils.core import setup # NOQA
else:
try:
from setuptools import setup # NOQA
issetuptools = True
except ImportError:
from distutils.core import setup # NOQA
from flake8 import __version__
README = open('README').read()
entry_points = {}
if issetuptools:
entry_points["distutils.commands"] = ["flake8 = flake8.run:Flake8Command"]
setup(
name="flake8",
license="MIT",
version=__version__,
description="code checking using pep8 and pyflakes",
author="Tarek Ziade",
author_email="tarek@ziade.org",
url="http://bitbucket.org/tarek/flake8",
packages=["flake8", "flake8.tests"],
scripts=["flake8/flake8"],
entry_points=entry_points,
long_description=README,
classifiers=[
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Utilities",
])