Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix argparse requirement for python < 2.6

  • Loading branch information...
commit 49e2e570d720d27e8537d73f120e2abba25d13f0 1 parent 0ff01c4
James Casbon authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 setup.py
View
8 setup.py
@@ -3,11 +3,13 @@
requires = []
-# install ordereddict for python < 2.7
-py_version = sys.version_info
-if py_version.major == 2 and py_version.minor < 7:
+# python 2.6 does not have argparse
+try:
+ import argparse
+except ImportError:
requires.append('argparse')
+
setup(
name='PyVCF',
py_modules=['vcf', 'vcf_filter'],
Please sign in to comment.
Something went wrong with that request. Please try again.