From 66a0ce0a52dad1904eb70fae8703c1c1fa5f2022 Mon Sep 17 00:00:00 2001 From: Vaclav Hapla Date: Fri, 21 Apr 2017 03:55:50 +0200 Subject: [PATCH] numpy-1.12.1-intel-2017a-Python-2.7.11.eb: check that numpy is present in python and in proper version --- n/numpy/numpy-1.12.1-intel-2017a-Python-2.7.11.eb | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/n/numpy/numpy-1.12.1-intel-2017a-Python-2.7.11.eb b/n/numpy/numpy-1.12.1-intel-2017a-Python-2.7.11.eb index 283c7247..d058bfae 100644 --- a/n/numpy/numpy-1.12.1-intel-2017a-Python-2.7.11.eb +++ b/n/numpy/numpy-1.12.1-intel-2017a-Python-2.7.11.eb @@ -22,13 +22,7 @@ dependencies = [ ('Python', '2.7.11'), ] -# need to use pip rather than regular 'setup.py install,' -# to ensure that this numpy wins over the one in the Python installation; -# using easy_install does not work... -use_pip = True - -# install as zipped egg to get a .pth file in lib/python*/site-packages; -# this enables shadowing of the numpy that is part of the Python installation -zipped_egg = True +# check that numpy is present in python and in proper version +sanity_check_commands = [('python', '-c "import numpy; assert(numpy.__version__ == \'%(version)s\')"')] moduleclass = 'math'