# IT4Innovations 2017

# Sanity check failing, generate module by "--module-only"

easyblock = 'PythonPackage'

name = 'opencv-python'
version = '3.3.0.10'
versionsuffix = '-Python-%(local_pyver)s'

homepage = 'http://deeplearning.net/software/theano'
description = """Theano is a Python library that allows you to define, optimize,
and evaluate mathematical expressions involving multi-dimensional arrays efficiently."""

toolchain = SYSTEM

source_urls = [PYPI_SOURCE]
sources = ['opencv_python-%(version)s-cp36-cp36m-manylinux1_x86_64.whl']

dependencies = [('Python', '3.6.1')]

use_pip = True
unpack_sources = False

#skipsteps = ['test', 'sanity_check']

#runtest='/apps/all/Python/3.6.1/bin/python -c "import cv2"'

sanity_check_paths = {
    'files': ['lib/python%(local_pyshortver)s/site-packages/cv2/cv2.cpython-36m-x86_64-linux-gnu.so'],
    'dirs': ['lib/python%(local_pyshortver)s/site-packages'],
}

sanity_check_commands = [('python', '-c "import cv2"')]

moduleclass = 'vis'