| 1 | # Wedge definition for mypy's Python source, as a git repo
|
| 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='mypy'
|
| 11 | WEDGE_VERSION='0.780'
|
| 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 | # Notes
|
| 22 | # - We have to also copy the .git dir, because it has .git/modules/typeshed
|
| 23 | # - Quirk: pack files in .git/modules/typeshed/objects/pack are read-only
|
| 24 | # this can fail if done twice?
|
| 25 |
|
| 26 | cp --verbose --recursive --no-target-directory \
|
| 27 | $src_dir/ $install_dir/
|
| 28 | }
|
| 29 |
|
| 30 | wedge-install() {
|
| 31 | # nothing to do
|
| 32 | true
|
| 33 | }
|
| 34 |
|
| 35 | wedge-smoke-test() {
|
| 36 | local install_dir=$1
|
| 37 |
|
| 38 | # TODO: It would be nice to run python3 -c 'import mypy', but we don't have a
|
| 39 | # way to refer to python3 here.
|
| 40 | ls -l $install_dir
|
| 41 | }
|