summaryrefslogtreecommitdiff
path: root/pyraf/build.sh
blob: 10674549e3bcc63b0e9ba01a0cbb854c9543838d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
if [[ `uname -s` == "Darwin" ]]; then
    export CFLAGS="-I/opt/X11/include"
    export LDFLAGS="-L/opt/X11/lib"
fi

if [[ $PY3K > 0 ]]; then
set +e
    2to3 -w --fix=print .
    2to3 -w --fix=except .
fi

python setup.py install || exit 1