summaryrefslogtreecommitdiff
path: root/share
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 /share
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'.
Diffstat (limited to 'share')
-rw-r--r--share/spack/csh/convert-pyext.sh5
1 files changed, 5 insertions, 0 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(/' {} \;