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',