# This file is an EasyBuild reciPY as per https://github.com/hpcugent/easybuild
# Author: Bart Verleye
# Center for eResearch, Auckland
easyblock = 'ConfigureMakePythonPackage'

name = 'SIP'
version = '4.17'

homepage = 'http://www.riverbanklocal_computing.com/software/sip/'
description = """SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries."""

toolchain = {'name': 'foss', 'version': '2015g'}

sources = [SOURCELOWER_TAR_GZ]
source_urls = [
    'http://sourceforge.net/projects/pyqt/files/sip/sip-%(version)s']

local_python = 'Python'
local_pyver = '2.7.9'
versionsuffix = '-%s-%s' % (local_python, local_pyver)

dependencies = [(local_python, local_pyver)]

configopts = "configure.py"

skipsteps = ['sanitycheck']

local_python_siteconfig_path = "$EBROOTPYTHON/site-packages"

sanity_check_paths = {
    'files': ['/apps/all/Python/2.7.9-foss-2015g/lib/python2.7/site-packages/sipconfig.py'],
    'dirs': [],
}

moduleclass = 'lang'
