Opened 21 months ago
Last modified 20 months ago
#29038 closed enhancement
Python package sage_conf: Provides optional configuration information for sagelib — at Version 10
Reported by:  mkoeppe  Owned by:  

Priority:  major  Milestone:  sage9.1 
Component:  build  Keywords:  
Cc:  fbissey, arojas, isuruf, embray, infinity0, ghtimokau, jdemeyer, dimpase, jhpalmieri, vbraun  Merged in:  
Authors:  Matthias Koeppe  Reviewers:  
Report Upstream:  N/A  Work issues:  
Branch:  u/mkoeppe/python_package_sage_conf__provides_optional_configuration_information_for_sagelib (Commits, GitHub, GitLab)  Commit:  88fd03c7784eb82eeb8cb06102ed4e93f5f1d758 
Dependencies:  Stopgaps: 
Description (last modified by )
This ticket introduces a new Python package sage_conf
that solves the problem of providing configuration information to sagelib at installation time (src/setup.py
), including the docbuild, and to the runtime of sagelib.
 sagethedistribution will generate this Python package at
./configure
time and install it at build time before starting to build/install sagelib usingsrc/setup.py
.  Distributions will generate and install their own
sage_conf
by a method of their choice before starting to build/install sagelib.
(This ticket provides an alternative implementation of #29022  see there for additional motivation.)
A console_script
allows to query individual variable values from the shell, or output all variables in .env format:
$ local/bin/sageconfig MAXIMA /Users/mkoeppe/s/sage/sagerebasing/worktreealgebraic2018spring/local/bin/maxima $ local/bin/sageconfig VERSION=9.1.beta0 MAXIMA=/Users/mkoeppe/s/sage/sagerebasing/worktreealgebraic2018spring/local/bin/maxima SAGE_LOCAL=/Users/mkoeppe/s/sage/sagerebasing/worktreealgebraic2018spring/local SAGE_ROOT=/Users/mkoeppe/s/sage/sagerebasing/worktreealgebraic2018spring
See also, for a broader context,
 #21707 Task: Split sageenv into 5
Change History (10)
comment:1 Changed 21 months ago by
 Description modified (diff)
comment:2 Changed 21 months ago by
 Branch set to u/mkoeppe/python_package_sage_conf__provides_optional_configuration_information_for_sagelib
comment:3 Changed 21 months ago by
 Cc fbissey arojas isuruf embray infinity0 ghtimokau jdemeyer dimpase jhpalmieri added
 Commit set to fe5c890e66a7dd37395720b6c8e08a3837e5a74d
 Status changed from new to needs_review
comment:4 Changed 21 months ago by
 Commit changed from fe5c890e66a7dd37395720b6c8e08a3837e5a74d to aefd827981481f015c696328402278f2f8d30912
Branch pushed to git repo; I updated commit sha1. New commits:
aefd827  build/pkgs/sage_conf/spkginstall: Fix up path

comment:5 Changed 21 months ago by
why are you checking in files which apparently are meant to be generated from .in templates?
comment:6 Changed 21 months ago by
A mistake, which I will fix in a moment. Thanks!
comment:7 Changed 21 months ago by
 Commit changed from aefd827981481f015c696328402278f2f8d30912 to 88fd03c7784eb82eeb8cb06102ed4e93f5f1d758
comment:8 Changed 21 months ago by
 Description modified (diff)
comment:9 Changed 20 months ago by
 Description modified (diff)
comment:10 Changed 20 months ago by
 Description modified (diff)
New commits:
29038: Python package sage_conf: Provides configuration information for sagelib