summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Ciurej <ciurej1@llnl.gov>2016-07-22 11:17:19 -0700
committerJoseph Ciurej <ciurej1@llnl.gov>2016-07-22 11:17:19 -0700
commitfa92f58167352efa21c787bf38e878ad471484f8 (patch)
tree6780003b7c620f3b546a0c939a8a0f88cab87465
parentac2e0962ce64a5b0824e79ad4266cbdb6207b336 (diff)
downloadspack-fa92f58167352efa21c787bf38e878ad471484f8.tar.gz
spack-fa92f58167352efa21c787bf38e878ad471484f8.tar.bz2
spack-fa92f58167352efa21c787bf38e878ad471484f8.tar.xz
spack-fa92f58167352efa21c787bf38e878ad471484f8.zip
Adding temporary script that fixes all Python extensions w/ 'setup_py'.
-rw-r--r--share/spack/csh/convert-pyext.sh5
-rw-r--r--var/spack/repos/builtin/packages/py-setuptools/package.py7
2 files changed, 10 insertions, 2 deletions
diff --git a/share/spack/csh/convert-pyext.sh b/share/spack/csh/convert-pyext.sh
new file mode 100644
index 0000000000..a48bcdbcca
--- /dev/null
+++ b/share/spack/csh/convert-pyext.sh
@@ -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(/' {} \;
diff --git a/var/spack/repos/builtin/packages/py-setuptools/package.py b/var/spack/repos/builtin/packages/py-setuptools/package.py
index 68032cb68d..08d5e5d552 100644
--- a/var/spack/repos/builtin/packages/py-setuptools/package.py
+++ b/var/spack/repos/builtin/packages/py-setuptools/package.py
@@ -24,8 +24,11 @@
##############################################################################
from spack import *
+
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"
url = "https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.tar.gz"
@@ -40,4 +43,4 @@ class PySetuptools(Package):
extends('python')
def install(self, spec, prefix):
- python('setup.py', 'install', '--prefix=%s' % prefix)
+ setup_py('install', '--prefix=%s' % prefix)