From 56312a6b27b16cabe2eda6f695d6438590d8b4c7 Mon Sep 17 00:00:00 2001 From: Alexis Metaireau Date: Thu, 19 Aug 2010 13:45:03 +0200 Subject: [PATCH] Add requires for the setup.py and argparse for the python versions < 2.7. --- bin/pelican | 2 +- setup.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/pelican b/bin/pelican index 98e9a64c..56c8b310 100755 --- a/bin/pelican +++ b/bin/pelican @@ -1,4 +1,4 @@ -#!/usr/local/bin/python2.7 +#!/usr/bin/python from pelican.generator import generate_output import argparse diff --git a/setup.py b/setup.py index d1459b08..1f4aba70 100644 --- a/setup.py +++ b/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',