1
0
Fork 0
forked from github/pelican

restructure the whole way scripts are created, using setuptools magic

to take care of creating .exe wrappers for windows.

To make this work needed to
- rename modules with a "-" in it (not a valid name)
- add an __init__.py to the tools directory
- create an entry point dictionary which stores the right associations
This commit is contained in:
Andrea Crotti 2012-03-07 10:33:46 +00:00
commit 8009324a3b
11 changed files with 782 additions and 786 deletions

View file

@ -12,13 +12,14 @@ try:
except ImportError:
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'
]
entry_points = {
'console_scripts': [
'pelican = pelican:main',
'pelican-import = tools.pelican_import:main',
'pelican-quickstart = tools.pelican_quickstart:main',
'pelican-themes = tools.pelican_themes:main'
]
}
setup(
name = "pelican",
@ -31,7 +32,7 @@ setup(
packages = ['pelican'],
include_package_data = True,
install_requires = requires,
scripts = scripts,
entry_points = entry_points,
classifiers = ['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'License :: OSI Approved :: GNU Affero General Public License v3',