summaryrefslogtreecommitdiff
path: root/cubeviz/build.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2017-09-20 14:31:57 -0400
committerGitHub <noreply@github.com>2017-09-20 14:31:57 -0400
commit34885eea71088fe680b398df2ab18013dc1c1579 (patch)
treeec9113cfd93c0465c266232fec7d36323873e881 /cubeviz/build.sh
parent206d674bc33822e2a5b456bdbf2f4d2d01c2ed65 (diff)
downloadastroconda-dev-34885eea71088fe680b398df2ab18013dc1c1579.tar.gz
Make sed calls portable (#69)
Diffstat (limited to 'cubeviz/build.sh')
-rw-r--r--cubeviz/build.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/cubeviz/build.sh b/cubeviz/build.sh
index e5a977a..14c64d7 100644
--- a/cubeviz/build.sh
+++ b/cubeviz/build.sh
@@ -1,3 +1,9 @@
# Replace malformed pytest requirement with something sane
-sed -i .bad -e 's/pytest==*/pytest>=3.1.0/' setup.py setup.cfg
+pytest_pattern='s/pytest==*/pytest>=3.1.0/'
+for f in setup.*
+do
+ sed -e ${pytest_pattern} "${f}" > "${f}.new"
+ mv "${f}.new" "${f}"
+done
+
$PYTHON setup.py install