Feature Proposal : Make All Python Extensions User Configuration Independent (#1435)

* Updated all Python extension packages to use 'setup_py' on install.

* Fixed a few minor style issues with the updated Python packages.
This commit is contained in:
Joseph Ciurej
2016-10-06 14:43:49 -07:00
committed by Todd Gamblin
parent 415ddeecf8
commit 82fcc5e1de
87 changed files with 90 additions and 99 deletions

View File

@@ -56,11 +56,10 @@ class PyH5py(Package):
depends_on('py-six', type=nolink)
def install(self, spec, prefix):
python('setup.py', 'configure',
'--hdf5={0}'.format(spec['hdf5'].prefix))
setup_py('configure', '--hdf5={0}'.format(spec['hdf5'].prefix))
if '+mpi' in spec:
env['CC'] = spec['mpi'].mpicc
python('setup.py', 'configure', '--mpi')
setup_py('configure', '--mpi')
python('setup.py', 'install', '--prefix={0}'.format(prefix))
setup_py('install', '--prefix={0}'.format(prefix))