Grouping tool: use system numpy if provided, otherwise use bundled numpy egg

This commit is contained in:
Kanwei Li
2011-08-24 13:58:48 -04:00
parent ad24f8c1dc
commit 068ef1df40
+6 -3
View File
@@ -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