From de27e3341a0b40db8e69f747ceadd50c7171e2ef Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Fri, 29 Apr 2016 10:44:28 -0400 Subject: Fix pyraf --- pyraf/build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'pyraf/build.sh') diff --git a/pyraf/build.sh b/pyraf/build.sh index 60e0bea..1067454 100644 --- a/pyraf/build.sh +++ b/pyraf/build.sh @@ -1,4 +1,12 @@ +if [[ `uname -s` == "Darwin" ]]; then + export CFLAGS="-I/opt/X11/include" + export LDFLAGS="-L/opt/X11/lib" +fi -pip install --no-deps --upgrade --force d2to1 || exit 1 +if [[ $PY3K > 0 ]]; then +set +e + 2to3 -w --fix=print . + 2to3 -w --fix=except . +fi -python setup.py install || exit 1 \ No newline at end of file +python setup.py install || exit 1 -- cgit