-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
sage_setup: Use paths within SAGE_LOCAL when provided via sage_conf #31338
Comments
This comment has been minimized.
This comment has been minimized.
Author: Matthias Koeppe |
New commits:
|
This comment has been minimized.
This comment has been minimized.
Dependencies: #31593 |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Reviewer: Dima Pasechnik |
comment:5
lgtm |
comment:6
Thank you! |
comment:8
ran into missing |
comment:9
I think this is actually coming from #31280 |
comment:10
OK, fine, this works otherwise, will look at #31280 again. |
comment:11
Thanks! |
Changed branch from u/mkoeppe/sage_setup__use_paths_within_sage_local_when_provided_via_sage_conf to |
Changed commit from |
comment:13
A bit late to that party.
I am trying to follow the logic of the ticket but I fail to see when
So either something from the environment or
So if neither I am not sure why the Is there another ticket that will make |
comment:14
The idea for distribution packaging would be that That it is always set, by the traditional catch-all defaults in |
comment:15
I am OK with eliminating |
comment:16
Let's see if we can solve this problem in a different way. Where is this |
comment:17
Replying to @mkoeppe:
Because you are add It is not strictly harmful unless you have done something dodgy to your system. I described it as pollution, because my logs gets full of it. Which makes reading them difficult when you are looking for real problems. |
comment:18
OK, this is essentially the same issue that we were hitting in #31578. Should we be looking for a general way to find the multilib path for situations like this? Perhaps something in |
comment:19
It is similar indeed and yes it appears that |
comment:20
Hum, on ubuntu I get |
comment:21
This is really annoying, ubuntu systems have a |
comment:22
Another possible solution: #32057 |
We add a simple mechanism to sagelib's
setup.py
(via a new module insage_setup
) to prependSAGE_LOCAL
values to key environment variables needed for the build:PATH
,LIBRARY_PATH
,CPATH
,LDFLAGS
. This allows use to build sagelib outside of an environment set bysage-env
(which would set these variables among many more) if onlysage_conf
is installed in the build environment.To test:
Note - the last line is not within a sage-env!
Follow-up, if necessary: Because for misconfigured Pythons,
-I
options may leak in as described in #31335 and take precedence over the CPATH that we set, we may want to essentially revert #29697, adding some refinements:SAGE_LOCAL
vsSAGE_VENV
$SAGE_LOCAL
is unset, nothing is added.Relevant tickets regarding include/library search paths: #13348, #14709, #29562 (+), #29607 (+), #29697 (?), #31041 (
), #30818 (), #30013 (~)Depends on #31593
CC: @jhpalmieri @kiwifb @orlitzky @antonio-rojas @dimpase
Component: build
Author: Matthias Koeppe
Branch:
31eaf59
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/31338
The text was updated successfully, but these errors were encountered: