From 068ef1df4072552df510258a09a2509cbbcd9cdd Mon Sep 17 00:00:00 2001 From: Kanwei Li Date: Wed, 24 Aug 2011 13:58:48 -0400 Subject: [PATCH] Grouping tool: use system numpy if provided, otherwise use bundled numpy egg --- tools/stats/grouping.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/stats/grouping.py b/tools/stats/grouping.py index 93d4c89ca5a..90f07a6093f 100644 --- a/tools/stats/grouping.py +++ b/tools/stats/grouping.py @@ -6,9 +6,12 @@ This tool provides the SQL "group by" functionality. """ import sys, commands, tempfile, random -import pkg_resources -pkg_resources.require( "numpy" ) -import numpy +try: + import numpy +except: + from galaxy import eggs + eggs.require( "numpy" ) + import numpy from itertools import groupby