added more Python modules

This commit is contained in:
Gregory L. Lee 2015-01-23 13:53:36 -08:00 committed by Todd Gamblin
parent 2bc3f74df2
commit 48f1ff87f8
7 changed files with 64 additions and 2 deletions

View File

@ -8,6 +8,7 @@ class PyDateutil(Package):
version('2.4.0', '75714163bb96bedd07685cdb2071b8bc') version('2.4.0', '75714163bb96bedd07685cdb2071b8bc')
extends('python') extends('python')
depends_on('py-setuptools')
def install(self, spec, prefix): def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix) python('setup.py', 'install', '--prefix=%s' % prefix)

View File

@ -0,0 +1,13 @@
from spack import *
class PyLibxml2(Package):
"""A Python wrapper around libxml2."""
homepage = "https://xmlsoft.org/python.html"
url = "ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.21.tar.gz"
version('2.6.21', '229dd2b3d110a77defeeaa73af83f7f3')
extends('python')
def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix)

View File

@ -16,6 +16,7 @@ class PyMatplotlib(Package):
depends_on('py-dateutil') depends_on('py-dateutil')
depends_on('py-pytz') depends_on('py-pytz')
depends_on('py-nose') depends_on('py-nose')
depends_on('py-numpy')
def install(self, spec, prefix): def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix) python('setup.py', 'install', '--prefix=%s' % prefix)

View File

@ -0,0 +1,13 @@
from spack import *
class PyPychecker(Package):
""""""
homepage = "http://pychecker.sourceforge.net/"
url = "http://sourceforge.net/projects/pychecker/files/pychecker/0.8.19/pychecker-0.8.19.tar.gz"
version('0.8.19', 'c37182863dfb09209d6ba4f38fce9d2b')
extends('python')
def install(self, spec, prefix):
python('setup.py', 'install', '--prefix=%s' % prefix)

View File

@ -0,0 +1,18 @@
from spack import *
class PyPyqt4(Package):
"""PyQt is a set of Python v2 and v3 bindings for Digia's Qt application framework and runs on all platforms supported by Qt including Windows, MacOS/X and Linux."""
homepage = "http://www.riverbankcomputing.com/software/pyqt/intro"
url = "http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-4.11.3/PyQt-x11-gpl-4.11.3.tar.gz"
version('4.11.3', '997c3e443165a89a559e0d96b061bf70')
extends('python')
depends_on('qt')
depends_on('py-sip')
def install(self, spec, prefix):
version_array = str(spec['python'].version).split('.')
python('configure.py', '--confirm-license', '--destdir=%s/python%s.%s/site-packages' %(self.prefix.lib, version_array[0], version_array[1]))
make()
make('install')

View File

@ -0,0 +1,15 @@
from spack import *
class PySip(Package):
"""SIP is a tool that makes it very easy to create Python bindings for C and C++ libraries."""
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.16.5', '6d01ea966a53e4c7ae5c5e48c40e49e5')
extends('python')
def install(self, spec, prefix):
python('configure.py')
make()
make('install')

View File

@ -37,8 +37,9 @@ def install(self, spec, prefix):
'-fast', '-fast',
'-optimized-qmake', '-optimized-qmake',
'-no-pch', '-no-pch',
'-no-phonon', # phonon required for py-pyqt4
'-no-phonon-backend', # '-no-phonon',
# '-no-phonon-backend',
'-no-openvg') '-no-openvg')
make() make()
make("install") make("install")