1
0
Fork 0
forked from github/pelican

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
import argparse

View file

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