Allow packages to build
This commit is contained in:
parent
a660c60eb1
commit
4eeaff175c
@ -60,4 +60,5 @@ class PyAstropy(Package):
|
|||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
python('setup.py', 'build', '--use-system-cfitsio',
|
python('setup.py', 'build', '--use-system-cfitsio',
|
||||||
'--use-system-expat')
|
'--use-system-expat')
|
||||||
python('setup.py', 'install', '--prefix={0}'.format(prefix))
|
python('setup.py', 'install', '--single-version-externally-managed',
|
||||||
|
'--root=/', '--prefix={0}'.format(prefix))
|
||||||
|
@ -39,6 +39,7 @@ class PyH5py(Package):
|
|||||||
variant('mpi', default=False, description='Build with MPI support')
|
variant('mpi', default=False, description='Build with MPI support')
|
||||||
|
|
||||||
extends('python', ignore=r'bin/cy.*')
|
extends('python', ignore=r'bin/cy.*')
|
||||||
|
|
||||||
depends_on('hdf5@1.8.4:+mpi', when='+mpi')
|
depends_on('hdf5@1.8.4:+mpi', when='+mpi')
|
||||||
depends_on('hdf5@1.8.4:~mpi', when='~mpi')
|
depends_on('hdf5@1.8.4:~mpi', when='~mpi')
|
||||||
depends_on('py-numpy@1.6.1:')
|
depends_on('py-numpy@1.6.1:')
|
||||||
@ -53,4 +54,5 @@ def install(self, spec, prefix):
|
|||||||
env['CC'] = spec['mpi'].mpicc
|
env['CC'] = spec['mpi'].mpicc
|
||||||
python('setup.py', 'configure', '--mpi')
|
python('setup.py', 'configure', '--mpi')
|
||||||
|
|
||||||
python('setup.py', 'install', '--prefix={0}'.format(prefix))
|
python('setup.py', 'install', '--single-version-externally-managed',
|
||||||
|
'--root=/', '--prefix={0}'.format(prefix))
|
||||||
|
@ -42,13 +42,5 @@ class PyIminuit(Package):
|
|||||||
depends_on('py-matplotlib')
|
depends_on('py-matplotlib')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
site_packages = '{0}/lib/python{1}/site-packages'.format(
|
python('setup.py', 'install', '--single-version-externally-managed',
|
||||||
prefix, spec['python'].version.up_to(2))
|
'--root=/', '--prefix={0}'.format(prefix))
|
||||||
|
|
||||||
# site-packages directory must already exist
|
|
||||||
mkdirp(site_packages)
|
|
||||||
|
|
||||||
# PYTHONPATH must include site-packages directory
|
|
||||||
env['PYTHONPATH'] += ':{0}'.format(site_packages)
|
|
||||||
|
|
||||||
python('setup.py', 'install', '--prefix={0}'.format(prefix))
|
|
||||||
|
@ -48,4 +48,5 @@ class PySncosmo(Package):
|
|||||||
depends_on('py-nestle')
|
depends_on('py-nestle')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
python('setup.py', 'install', '--prefix={0}'.format(prefix))
|
python('setup.py', 'install', '--single-version-externally-managed',
|
||||||
|
'--root=/', '--prefix={0}'.format(prefix))
|
||||||
|
Loading…
Reference in New Issue
Block a user