From 557feff3eb8305d7fab2ea94c019ae6bcf74cbad Mon Sep 17 00:00:00 2001 From: mrlabbe Date: Wed, 26 Sep 2012 08:06:25 -0400 Subject: [PATCH] add cmd script only on windows (as per issue #22 specification) --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c0528e1..3927603 100755 --- a/setup.py +++ b/setup.py @@ -1,11 +1,15 @@ import sys +import os ispy3 = sys.version_info[0] == 3 +iswin = os.name == 'nt' kwargs = {} scripts = ["flake8/flake8"] if ispy3: from distutils.core import setup # NOQA + if iswin: + scripts.append("scripts/flake8.cmd") else: try: from setuptools import setup # NOQA @@ -18,7 +22,8 @@ else: } except ImportError: from distutils.core import setup # NOQA - scripts.append("scripts/flake8.cmd") + if iswin: + scripts.append("scripts/flake8.cmd") from flake8 import __version__