mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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
|
from pelican.generator import generate_output
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
|
||||||
6
setup.py
6
setup.py
|
|
@ -1,4 +1,9 @@
|
||||||
from distutils.core import setup
|
from distutils.core import setup
|
||||||
|
import sys
|
||||||
|
|
||||||
|
requires = ['feedgenerator', 'jinja2', 'pygments']
|
||||||
|
if sys.version_info < (2,7):
|
||||||
|
requires.append('argparse')
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name = "pelican",
|
name = "pelican",
|
||||||
|
|
@ -9,6 +14,7 @@ setup(
|
||||||
description = "A tool to generate a static blog, with restructured text input files.",
|
description = "A tool to generate a static blog, with restructured text input files.",
|
||||||
packages = ['pelican'],
|
packages = ['pelican'],
|
||||||
package_data = {'pelican': ['themes/templates/*']},
|
package_data = {'pelican': ['themes/templates/*']},
|
||||||
|
install_requires = requires,
|
||||||
scripts = ['bin/pelican'],
|
scripts = ['bin/pelican'],
|
||||||
classifiers = ['Development Status :: 5 - Production/Stable',
|
classifiers = ['Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Console',
|
'Environment :: Console',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue