Add requires for the setup.py and argparse for the python versions < 2.7.

This commit is contained in:
Alexis Metaireau 2010-08-19 13:45:03 +02:00
commit 56312a6b27
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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',