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
|
#!/usr/bin/env python
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
import sys
|
import sys
|
||||||
|
import platform
|
||||||
|
|
||||||
VERSION = "2.7.2" # find a better way to do so.
|
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):
|
if sys.version_info < (2,7):
|
||||||
requires.append('argparse')
|
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(
|
setup(
|
||||||
name = "pelican",
|
name = "pelican",
|
||||||
version = VERSION,
|
version = VERSION,
|
||||||
|
|
@ -19,9 +28,7 @@ setup(
|
||||||
packages = ['pelican'],
|
packages = ['pelican'],
|
||||||
include_package_data = True,
|
include_package_data = True,
|
||||||
install_requires = requires,
|
install_requires = requires,
|
||||||
scripts = ['bin/pelican', 'tools/pelican-themes', 'tools/pelican-import', 'tools/pelican-quickstart',
|
scripts = scripts,
|
||||||
'bin/pelican.bat', 'tools/pelican-themes.bat', 'tools/pelican-import.bat',
|
|
||||||
'tools/pelican-quickstart.bat'],
|
|
||||||
classifiers = ['Development Status :: 5 - Production/Stable',
|
classifiers = ['Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
'License :: OSI Approved :: GNU Affero General Public License v3',
|
'License :: OSI Approved :: GNU Affero General Public License v3',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue