From ed954ee839b7563894d0c3990ca886bae25a3111 Mon Sep 17 00:00:00 2001 From: Skami18 Date: Sun, 23 Oct 2011 19:04:34 +0200 Subject: [PATCH] The .bat files are no longer installed in other platforms than Windows --- setup.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 67dce1ec..510a6855 100755 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python from setuptools import setup import sys +import platform VERSION = "2.7.2" # find a better way to do so. @@ -8,6 +9,14 @@ requires = ['feedgenerator', 'jinja2', 'pygments', 'docutils', 'pytz'] if sys.version_info < (2,7): requires.append('argparse') +scripts = ['bin/pelican', 'tools/pelican-themes', 'tools/pelican-import', 'tools/pelican-quickstart'] + +if sys.platform.startswith('win'): + scripts += [ + 'bin/pelican.bat', 'tools/pelican-themes.bat', + 'tools/pelican-import.bat', 'tools/pelican-quickstart.bat' + ] + setup( name = "pelican", version = VERSION, @@ -19,9 +28,7 @@ setup( packages = ['pelican'], include_package_data = True, install_requires = requires, - scripts = ['bin/pelican', 'tools/pelican-themes', 'tools/pelican-import', 'tools/pelican-quickstart', - 'bin/pelican.bat', 'tools/pelican-themes.bat', 'tools/pelican-import.bat', - 'tools/pelican-quickstart.bat'], + scripts = scripts, classifiers = ['Development Status :: 5 - Production/Stable', 'Environment :: Console', 'License :: OSI Approved :: GNU Affero General Public License v3',