diff options
Diffstat (limited to 'pyraf/build.sh')
-rw-r--r-- | pyraf/build.sh | 12 |
1 files changed, 10 insertions, 2 deletions
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 |