Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use a try / except to check if argparse is a needed dependency

  • Loading branch information...
commit 1f32624e8bb33926d7d836ddf3b71772a2efb88e 1 parent 352d204
Andrea Crotti AndreaCrotti authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 setup.py
5 setup.py
View
@@ -6,7 +6,10 @@
VERSION = "3.0" # find a better way to do so.
requires = ['feedgenerator', 'jinja2', 'pygments', 'docutils', 'pytz']
-if sys.version_info < (2,7):
+
+try:
+ import argparse
+except ImportError:
requires.append('argparse')
scripts = ['bin/pelican', 'tools/pelican-themes', 'tools/pelican-import', 'tools/pelican-quickstart']
Please sign in to comment.
Something went wrong with that request. Please try again.