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

if [[ $PY3K > 0 ]]; then
set +e
    echo Running 2to3...
    2to3 -w . &>/dev/null
    if [[ $? != 0 ]]; then
        echo "ERROR: 2to3 technically failed!"
    fi
fi

$PYTHON -m pip install . --no-deps --ignore-installed --no-cache-dir -vvv