Adding temporary script that fixes all Python extensions w/ 'setup_py'.
This commit is contained in:
parent
ac2e0962ce
commit
fa92f58167
5
share/spack/csh/convert-pyext.sh
Normal file
5
share/spack/csh/convert-pyext.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash --noprofile
|
||||||
|
PYEXT_REGEX=".*/.*/package.py"
|
||||||
|
|
||||||
|
find var/spack/repos/builtin/packages/ -type f -regextype sed -regex ${PYEXT_REGEX} -exec \
|
||||||
|
sed -i 's/python('\''setup.py'\'', /setup_py(/' {} \;
|
@ -24,8 +24,11 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class PySetuptools(Package):
|
class PySetuptools(Package):
|
||||||
"""Easily download, build, install, upgrade, and uninstall Python packages."""
|
"""A Python utility that aids in the process of downloading, building,
|
||||||
|
upgrading, installing, and uninstalling Python packages."""
|
||||||
|
|
||||||
homepage = "https://pypi.python.org/pypi/setuptools"
|
homepage = "https://pypi.python.org/pypi/setuptools"
|
||||||
url = "https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz"
|
url = "https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz"
|
||||||
|
|
||||||
@ -40,4 +43,4 @@ class PySetuptools(Package):
|
|||||||
extends('python')
|
extends('python')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
python('setup.py', 'install', '--prefix=%s' % prefix)
|
setup_py('install', '--prefix=%s' % prefix)
|
||||||
|
Loading…
Reference in New Issue
Block a user