forked from github/pelican
Add requires for the setup.py and argparse for the python versions < 2.7.
This commit is contained in:
parent
ebd906cd4b
commit
56312a6b27
2 changed files with 7 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/local/bin/python2.7
|
||||
#!/usr/bin/python
|
||||
from pelican.generator import generate_output
|
||||
import argparse
|
||||
|
||||
|
|
|
|||
6
setup.py
6
setup.py
|
|
@ -1,4 +1,9 @@
|
|||
from distutils.core import setup
|
||||
import sys
|
||||
|
||||
requires = ['feedgenerator', 'jinja2', 'pygments']
|
||||
if sys.version_info < (2,7):
|
||||
requires.append('argparse')
|
||||
|
||||
setup(
|
||||
name = "pelican",
|
||||
|
|
@ -9,6 +14,7 @@ setup(
|
|||
description = "A tool to generate a static blog, with restructured text input files.",
|
||||
packages = ['pelican'],
|
||||
package_data = {'pelican': ['themes/templates/*']},
|
||||
install_requires = requires,
|
||||
scripts = ['bin/pelican'],
|
||||
classifiers = ['Development Status :: 5 - Production/Stable',
|
||||
'Environment :: Console',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue