The .bat files are no longer installed in other platforms than Windows

This commit is contained in:
Skami18 2011-10-23 19:04:34 +02:00
commit ed954ee839

View file

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