spack/var/spack/repos/builtin/packages/py-sip/package.py

30 lines
1.1 KiB
Python
Raw Normal View History

# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
2015-01-24 05:53:36 +08:00
from spack import *
2015-02-15 17:59:36 +08:00
import os
2015-01-24 05:53:36 +08:00
2016-08-10 16:50:00 +08:00
2015-01-24 05:53:36 +08:00
class PySip(Package):
2016-08-10 16:50:00 +08:00
"""SIP is a tool that makes it very easy to create Python bindings for C
and C++ libraries."""
2015-01-24 05:53:36 +08:00
homepage = "http://www.riverbankcomputing.com/software/sip/intro"
url = "http://sourceforge.net/projects/pyqt/files/sip/sip-4.16.5/sip-4.16.5.tar.gz"
version('4.19.13', sha256='e353a7056599bf5fbd5d3ff9842a6ab2ea3cf4e0304a0f925ec5862907c0d15e')
2015-06-01 23:39:01 +08:00
version('4.16.7', '32abc003980599d33ffd789734de4c36')
version('4.16.5', '6d01ea966a53e4c7ae5c5e48c40e49e5')
2015-01-24 05:53:36 +08:00
extends('python')
def install(self, spec, prefix):
2015-02-15 17:59:36 +08:00
python('configure.py',
'--destdir=%s' % site_packages_dir,
'--bindir=%s' % spec.prefix.bin,
'--incdir=%s' % python_include_dir,
'--sipdir=%s' % os.path.join(spec.prefix.share, 'sip'))
2015-01-24 05:53:36 +08:00
make()
make('install')