Skip to content

Commit 0405d07

Browse files
author
Release Manager
committed
gh-36367: Simplify experimental all-conda installation instructions via `pkgs/sage-conf_conda` <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes #1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> This is a version of sage-conf for the experimental all-conda installation method. It calls `configure` with the whole long set of options, which simplifies the instructions for the user. The new instructions use editable mode (PEP 660) for `pkgs/sage- conf_conda`, but it also works to install it in non-editable mode. <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #36367 Reported by: Matthias Köppe Reviewer(s): Isuru Fernando, Tobias Diez
2 parents 1af197b + 355b39c commit 0405d07

File tree

16 files changed

+297
-47
lines changed

16 files changed

+297
-47
lines changed

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,16 @@ build/bin/sage-build-env-config
175175
/pkgs/*/*.egg-info
176176
/pkgs/*/.tox
177177

178+
/pkgs/sage-conf_pypi/sage_root/config.log
179+
/pkgs/sage-conf_pypi/sage_root/config.status
180+
/pkgs/sage-conf_pypi/sage_root/local/
181+
/pkgs/sage-conf_pypi/sage_root/logs/
182+
/pkgs/sage-conf_pypi/sage_root/prefix
183+
/pkgs/sage-conf_pypi/sage_root/src/bin/sage-env-config
184+
/pkgs/sage-conf_pypi/sage_root/src/bin/sage-src-env-config
185+
/pkgs/sage-conf_pypi/sage_root/upstream/
186+
/pkgs/sage-conf_pypi/sage_root/venv
187+
178188
/pkgs/sagemath-objects/setup.cfg
179189
/pkgs/sagemath-bliss/setup.cfg
180190
/pkgs/sagemath-coxeter3/setup.cfg

pkgs/sage-conf/README.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,20 @@ sage_conf in the SageMath distribution
7878
The original version of the distribution package ``sage_conf`` is used
7979
internally in the SageMath distribution. It is provided in the directory
8080
`pkgs/sage-conf <https://github.com/sagemath/sage/tree/develop/pkgs/sage-conf/>`_.
81-
This version of the package is generated by the Sage distribution's ``configure``
81+
This version of the package is generated by the Sage distribution's ``./configure``
8282
script.
8383

8484

85+
sage_conf for conda
86+
-------------------
87+
88+
The version of the distribution package in the directory
89+
`pkgs/sage-conf_conda <https://github.com/sagemath/sage/tree/develop/pkgs/sage-conf_conda/>`_
90+
is used in an experimental installation method of SageMath, where all packages
91+
are provided by conda. This method is described in
92+
https://doc.sagemath.org/html/en/installation/conda.html#using-conda-to-provide-all-dependencies-for-the-sage-library-experimental
93+
94+
8595
sage_conf in downstream distributions
8696
-------------------------------------
8797

pkgs/sage-conf_conda/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/_sage_conf/_conf.py
2+
/build
3+
/dist
4+
/*.egg-info
5+
/.tox
6+
/bin/sage-env-config

pkgs/sage-conf_conda/MANIFEST.in

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
prune .tox
2+
include VERSION.txt
3+
graft bin
4+
exclude bin/sage-env-config # generated by configure
5+
6+
prune sage_root
7+
include sage_root/Makefile
8+
include sage_root/README.md
9+
include sage_root/VERSION.txt
10+
include sage_root/bootstrap
11+
include sage_root/bootstrap-conda
12+
graft sage_root/build
13+
prune sage_root/build/.tox
14+
exclude sage_root/build/bin/sage-build-env-config # generated by configure
15+
exclude sage_root/build/make/Makefile-auto # generated by configure
16+
exclude sage_root/build/make/Makefile # generated by configure
17+
18+
# These sources are not needed because individual distributions of these are made.
19+
prune sage_root/build/pkgs/*/src*
20+
21+
graft sage_root/config
22+
include sage_root/configure
23+
include sage_root/configure.ac
24+
graft sage_root/m4
25+
26+
# Only these pkgs are needed (because of dependencies on source files,
27+
# see "git grep SAGE_ROOT build/pkgs/*/dependencies")
28+
graft sage_root/pkgs/sage-conf
29+
prune sage_root/pkgs/sage-conf/build
30+
prune sage_root/pkgs/sage-conf/dist
31+
prune sage_root/pkgs/sage-conf/*.egg-info
32+
exclude sage_root/pkgs/sage-conf/_sage_conf/_conf.py # generated by configure
33+
graft sage_root/pkgs/sage-docbuild
34+
prune sage_root/pkgs/sage-docbuild/build
35+
prune sage_root/pkgs/sage-docbuild/dist
36+
prune sage_root/pkgs/sage-docbuild/*.egg-info
37+
38+
graft sage_root/src/_sage_conf
39+
include sage_root/src/bin/sage-env
40+
include sage_root/src/bin/sage-env-config.in
41+
include sage_root/src/bin/sage-src-env-config.in
42+
include sage_root/src/bin/sage-venv-config
43+
include sage_root/src/bin/sage-version.sh
44+
include sage_root/src/doc/bootstrap # FIXME: should move to builds/pkgs/sagemath_doc_html/
45+
46+
global-exclude .tox
47+
global-exclude *~*
48+
global-exclude *.bak
49+
global-exclude *.orig
50+
global-exclude __pycache__
51+
global-exclude *.py[co]
52+
global-exclude *.so
53+
global-exclude .DS_Store

pkgs/sage-conf_conda/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sage-conf/README.rst

pkgs/sage-conf_conda/VERSION.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10.2.beta5

pkgs/sage-conf_conda/_sage_conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sage-conf/_sage_conf

pkgs/sage-conf_conda/bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sage-conf_pypi/bin

pkgs/sage-conf_conda/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sage-conf/pyproject.toml

pkgs/sage-conf_conda/sage_conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../sage-conf/sage_conf.py

0 commit comments

Comments
 (0)