-
-
Notifications
You must be signed in to change notification settings - Fork 0
Build/install when sage installed in meson editable mode fails #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess you are using the meson build instructions rather than pip? I think the problem is ultimately that sagemath-giac depends on sagemath-standard, and you don't have sagemath-standard "installed" as far as python is concerned. Using pip should have caught that, but a direct meson build assumes that you have the prereqs installed. If so, the docs are missing some necessary step to build against a sagemath-standard that hasn't been "installed." |
Both instructions (meson install or pip install) give the same result. I think pip does show sage being installed, something like this…
|
Is that a sage shell (like you would get from If python knows that sage is installed, there is probably some bootstrap script/shell that modifies your python path to include the path to sagelib (which is installed outside of the That wouldn't fix the general problem of editable dependencies of meson/cython projects, but it would get sage working again quickly in this scenario. |
No, that's bash with conda/mamba environment activated. Yes, Python knows that sage is installed. But Python path does not include the path to sagelib. Meson-python uses metapath instead. You can try building sage with meson yourself. On my machine path and meta_path looks like this:
that's why I use |
This is my first time seeing that
The "right" solution can't involve The existing hack traverses I'd like to get it right because AFAIK this is the first such modular cython package and whatever we come up with is likely to be copy/pasted in the future. |
sounds like a right thing to do, in principle. (well also because it doesn't really affect me for now) How about we propose a change to meson-python to also modify sys.path instead? (technically there should be a separate (side note: technically in this case Sage is the package (dependent) and sagemath-giac is the one that requires sage.) |
See sagemath/sage#39376 (comment)
The text was updated successfully, but these errors were encountered: