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: sage-9.1
Component: build Keywords:
Cc: fbissey, arojas, isuruf, embray, infinity0, gh-timokau, 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:

Status badges

Description (last modified by mkoeppe)

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.

  • sage-the-distribution will generate this Python package at ./configure time and install it at build time before starting to build/install sagelib using src/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/sage-config MAXIMA
/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/local/bin/maxima
$ local/bin/sage-config
VERSION=9.1.beta0
MAXIMA=/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/local/bin/maxima
SAGE_LOCAL=/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/local
SAGE_ROOT=/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring

See also, for a broader context,

  • #21707 Task: Split sage-env into 5

Change History (10)

comment:1 Changed 21 months ago by mkoeppe

  • Authors set to Matthias Koeppe
  • Description modified (diff)

comment:2 Changed 21 months ago by mkoeppe

  • Branch set to u/mkoeppe/python_package_sage_conf__provides_optional_configuration_information_for_sagelib

comment:3 Changed 21 months ago by mkoeppe

  • Cc fbissey arojas isuruf embray infinity0 gh-timokau jdemeyer dimpase jhpalmieri added
  • Commit set to fe5c890e66a7dd37395720b6c8e08a3837e5a74d
  • Status changed from new to needs_review

New commits:

fe5c89029038: Python package sage_conf: Provides configuration information for sagelib

comment:4 Changed 21 months ago by git

  • Commit changed from fe5c890e66a7dd37395720b6c8e08a3837e5a74d to aefd827981481f015c696328402278f2f8d30912

Branch pushed to git repo; I updated commit sha1. New commits:

aefd827build/pkgs/sage_conf/spkg-install: Fix up path

comment:5 Changed 21 months ago by dimpase

why are you checking in files which apparently are meant to be generated from .in templates?

comment:6 Changed 21 months ago by mkoeppe

A mistake, which I will fix in a moment. Thanks!

comment:7 Changed 21 months ago by git

  • Commit changed from aefd827981481f015c696328402278f2f8d30912 to 88fd03c7784eb82eeb8cb06102ed4e93f5f1d758

Branch pushed to git repo; I updated commit sha1. New commits:

981e864Move .gitignore to the right place, remove generated files
88fd03cAdd console_scripts entry_point sage-config

comment:8 Changed 21 months ago by mkoeppe

  • Description modified (diff)

comment:9 Changed 20 months ago by mkoeppe

  • Description modified (diff)

comment:10 Changed 20 months ago by mkoeppe

  • Description modified (diff)
Note: See TracTickets for help on using tickets.