mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
The .bat files are no longer installed in other platforms than Windows
This commit is contained in:
parent
3bdb1eae0b
commit
ed954ee839
1 changed files with 10 additions and 3 deletions
13
setup.py
13
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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue