#!/usr/bin/env bash # The cython.py script imports import Cython.Compiler.Main, which # imports the same script cython.py that we run below, which is not # even in the Cython module. That's really weird and backwards, in my opinion. # That's why setting PYTHONPATH is so important here, since otherwise # that second import of cython.py would fail. export SCRIPTPATH="$( cd -- "$(dirname "`readlink -f $0`")" >/dev/null 2>&1 ; pwd -P )" export PYTHONPATH="$SCRIPTPATH"/../dist/wasm/ `dirname $0`/python-wasm "$PYTHONPATH"/cython.py "$@"