Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/bin/sage-cython: new cython wrapper with the venv sys.path
When Sage is installed in a venv, sagelib gets added to sys.path by virtue of venv/bin/python, which basically runs whatever python you were going to run anyway, but with a modified sys.path. If however you are building an external cython package using the system cython, this falls apart: the system cython is run under the system python, which does not have sagelib in its sys.path. This makes it impossible to build cython SPKGs that depend on sagelib. To address the issue, we add a tiny wrapper called sage-venv-cython that essentially runs "python /path/to/cython" rather than"cython". To use it, simply set export CYTHON=sage-cython in spkg-install.in. (By the time the package is built, the wrapper will be in $PATH.)
- Loading branch information