Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / tools / travis / linux_install.sh @ 5cef0f13

History | View | Annotate | Download (483 Bytes)

1
#!/usr/bin/env bash
2
set -ex
3

    
4
# create new empty venv
5
virtualenv -p python ~/venv
6
source ~/venv/bin/activate
7

    
8
if [[ "${OPTIONAL_DEPS}" == 1 ]]; then
9

    
10
  # needed to build Python binding for GDAL
11
  export CPLUS_INCLUDE_PATH=/usr/include/gdal
12
  export C_INCLUDE_PATH=/usr/include/gdal
13

    
14
  # needed for view_graphviz and default_opener
15
  DIR=~/.local/bin
16
  export PATH=$DIR:$PATH
17
  mkdir -p $DIR
18
  FILE=$DIR/xdg-open
19
  cat <<EOF >$FILE
20
#!/bin/sh
21

    
22
echo $1
23
EOF
24
  chmod +x $FILE
25

    
26
fi
27

    
28
set +ex