summaryrefslogtreecommitdiffstats
path: root/maintenance/cython3-wrapper.sh
blob: 1e4328d8a396e4b84c23e4af7750e21c567a3797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

basedir="$(dirname "$0")"
[ "$(echo "$basedir" | cut -c1)" = '/' ] || basedir="$PWD/$basedir"

awlsim_base="$basedir/.."

set -e

if ! [ -x "$awlsim_base/awlsim-test" -a -x "$awlsim_base/setup.py" ]; then
	echo "basedir sanity check failed"
	exit 1
fi

cd "$awlsim_base"
for path in ./build/lib.*-*-3.*; do
	export PYTHONPATH="$path/:$PYTHONPATH"
done
export PYTHONPATH=".:$PYTHONPATH"
export AWLSIM_CYTHON=2
exec python3 "$@"
bues.ch cgit interface