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
sysconfdir not respected/implemented #14750
Comments
Replying to @sagetrac-felixs:
Go ahead (letting (It's a bit funny to say Sage doesn't repect that |
comment:2
P.S.: Other config files end up below |
comment:3
Replying to @nexttime:
My copy of Sage has a configure. I must have repressed the previous state. ;) Replying to @nexttime:
While I'm at it: How about use something like the following to access config files in general? def configfile(name):
if os.exists(HOME + "/.sage/" + name)
return open(HOME + "/.sage/" + name)
return open("SAGE_ETC"+name) This might increase readability and enable overrides. |
Commit: |
comment:5
Here's a patch... |
Changed commit from |
comment:7
Could we have a branch name too ? Nathann |
comment:8
Replying to @nathanncohen:
yes. |
Commit: |
Branch: u/felixs/14750 |
Reviewer: Nathann Cohen |
comment:9
Goooooooood to go ! Nathann |
Configuration files should be placed into 'sysconfdir' [1]. Files such as gprc.expect in$(SAGE_LOCAL)/etc or default.qepcadrc in $ (SAGE_LOCAL) will break future sagelib packaging.
SAGE_LOCAL will supposedly be set to 'prefix' for Sage-the-library packages.
It might make sense to add SAGE_ETC=sysconfdir to the environment (and use that whereever appropriate). sysconfdir defaults to prefix/etc (=SAGE_LOCAL/etc) but can be overridden for custom installations.
[1] www.gnu.org/prep/standards/html_node/Directory-Variables.html
Component: distribution
Keywords: sysconfdir, sage-the-library
Author: Felix Salfelder
Branch/Commit: u/felixs/14750 @
573b23e
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/14750
The text was updated successfully, but these errors were encountered: