this repo has no description
1#!/bin/bash
2# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
3
4if [[ -z $PYRO_BUILD_DIR ]]; then
5 PYRO_BUILD_DIR="$(dirname "$0")/../build"
6fi
7
8# Add .exe for cpython's MacOS binary
9CPYTHON_BIN="$PYRO_BUILD_DIR/third-party/cpython/python"
10if [[ "$(uname)" == "Darwin" ]]; then
11 CPYTHON_BIN+=".exe"
12fi
13
14if [[ ! -x "$CPYTHON_BIN" ]]; then
15 echo "$CPYTHON_BIN is not executable. Please build using 'cmake --build . --target cpython'" 1>&2
16 exit 1
17fi
18
19PYRO_BUILD_DIR="$PYRO_BUILD_DIR" PYTHON_BIN="$CPYTHON_BIN" \
20 "$(dirname "$0")/python_tests_pyro.sh" "$@"