summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2011-09-15 17:38:32 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2011-09-15 17:38:32 +0200
commit9156ebc440248245846e57bff50abf67c6145288 (patch)
treed8f475b82583f1299a75ae7d715c10191ab40a92
parente2296cde391e5c7cba024ecd07ccd303602cf49f (diff)
downloadlogilab-common-9156ebc440248245846e57bff50abf67c6145288.tar.gz
pkginfo: only install unittest2 when python version < 2.7 (closes: #76068)
-rw-r--r--__pkginfo__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/__pkginfo__.py b/__pkginfo__.py
index a8a937b..41761dc 100644
--- a/__pkginfo__.py
+++ b/__pkginfo__.py
@@ -17,6 +17,7 @@
# with logilab-common. If not, see <http://www.gnu.org/licenses/>.
"""logilab.common packaging information"""
__docformat__ = "restructuredtext en"
+import sys
distname = 'logilab-common'
modname = 'common'
@@ -39,4 +40,6 @@ from os.path import join
scripts = [join('bin', 'pytest')]
include_dirs = [join('test', 'data')]
-install_requires = ['unittest2 >= 0.5.1']
+if sys.version_info < (2, 7):
+ install_requires = ['unittest2 >= 0.5.1']
+