Commits

mrlabbe  committed dde622e

add cmd script only on windows (as per issue #22 specification)

  • Participants
  • Parent commits e4e4dbb

Comments (0)

Files changed (1)

 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
         }
     except ImportError:
         from distutils.core import setup   # NOQA
-        scripts.append("scripts/flake8.cmd")
+        if iswin:
+            scripts.append("scripts/flake8.cmd")
 
 from flake8 import __version__