| 1 | # Wedge definition for pyflakes
 | 
| 2 | #
 | 
| 3 | # Loaded by deps/wedge.sh.
 | 
| 4 | 
 | 
| 5 | set -o nounset
 | 
| 6 | set -o pipefail
 | 
| 7 | set -o errexit
 | 
| 8 | 
 | 
| 9 | # sourced
 | 
| 10 | WEDGE_NAME='pyflakes'
 | 
| 11 | WEDGE_VERSION='2.4.0'
 | 
| 12 | 
 | 
| 13 | wedge-make() {
 | 
| 14 |   local src_dir=$1
 | 
| 15 |   local build_dir=$2
 | 
| 16 |   local install_dir=$3
 | 
| 17 | 
 | 
| 18 |   # TODO: shouldn't have to do this?
 | 
| 19 |   mkdir -p $install_dir
 | 
| 20 | 
 | 
| 21 |   cp --verbose --recursive --no-target-directory \
 | 
| 22 |     $src_dir/ $install_dir/
 | 
| 23 | }
 | 
| 24 | 
 | 
| 25 | wedge-install() {
 | 
| 26 |   # nothing to do
 | 
| 27 |   true
 | 
| 28 | }
 | 
| 29 | 
 | 
| 30 | wedge-smoke-test() {
 | 
| 31 |   local install_dir=$1
 | 
| 32 | 
 | 
| 33 |   # TODO: It would be nice to run python2 -c 'import pyflakes', but we don't
 | 
| 34 |   # have a way to refer to python2 here.
 | 
| 35 |   ls -l $install_dir
 | 
| 36 | }
 |