Skip to content

Commit 43ea952

Browse files
authored
Merge branch 'conf-optional' into conda-update
2 parents 17748c5 + 1cf5c2e commit 43ea952

File tree

7 files changed

+12
-14
lines changed

7 files changed

+12
-14
lines changed

.devcontainer/onCreate-conda.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ conda init bash
88

99
# Build sage
1010
conda run -n sage-dev ./bootstrap
11-
conda run -n sage-dev ./configure --with-python=/opt/conda/envs/sage-dev/bin/python --prefix=/opt/conda/envs/sage-dev
12-
conda run -n sage-dev pip install --no-build-isolation -v -v -e ./pkgs/sage-conf ./pkgs/sage-setup
11+
conda run -n sage-dev pip install --no-build-isolation -v -v -e ./pkgs/sage-setup
1312
conda run -n sage-dev pip install --no-build-isolation -v -v -e ./src

.github/workflows/ci-conda.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,17 @@ jobs:
6262
conda info
6363
conda list
6464
65-
- name: Configure
65+
- name: Bootstrap
6666
shell: bash -l {0}
6767
continue-on-error: true
6868
run: |
6969
./bootstrap
70-
echo "::add-matcher::.github/workflows/configure-systempackage-problem-matcher.json"
71-
./configure --enable-build-as-root --with-python=$CONDA_PREFIX/bin/python --prefix=$CONDA_PREFIX --enable-system-site-packages $(for pkg in $(./sage -package list :standard: --has-file spkg-configure.m4 --has-file distros/conda.txt --exclude rpy2); do echo --with-system-$pkg=force; done)
72-
echo "::remove-matcher owner=configure-system-package-warning::"
73-
echo "::remove-matcher owner=configure-system-package-error::"
7470
7571
- name: Build
7672
shell: bash -l {0}
7773
run: |
7874
# Use --no-deps and pip check below to verify that all necessary dependencies are installed via conda.
79-
pip install --no-build-isolation --no-deps -v -v -e ./pkgs/sage-conf ./pkgs/sage-setup
75+
pip install --no-build-isolation --no-deps -v -v -e ./pkgs/sage-setup
8076
pip install --no-build-isolation --no-deps --config-settings editable_mode=compat -v -v -e ./src
8177
env:
8278
SAGE_NUM_THREADS: 2

.gitpod.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ tasks:
1111
&& conda config --append envs_dirs $(pwd)
1212
&& conda activate $(pwd)/venv
1313
&& ./bootstrap
14-
&& ./configure --enable-build-as-root --with-python=$CONDA_PREFIX/bin/python --prefix=$CONDA_PREFIX
15-
&& pip install --no-build-isolation -v -v -e ./pkgs/sage-conf ./pkgs/sage-setup
14+
&& pip install --no-build-isolation -v -v -e ./pkgs/sage-setup
1615
&& pip install --no-build-isolation -v -v -e ./src
1716
# Activate conda environment, set up Trac remote
1817
# RestructuredText extension recommends python extension, although we have already installed it

pkgs/sage-conf/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ sage_conf for conda
8787

8888
The version of the distribution package in the directory
8989
`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
90+
may be used in an installation method of SageMath, where all packages
9191
are provided by conda. This method is described in
9292
https://doc.sagemath.org/html/en/installation/conda.html#using-conda-to-provide-all-dependencies-for-the-sage-library-experimental
9393

src/doc/en/installation/conda.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,15 @@ Here we assume that you are using a git checkout.
131131
- Bootstrap the source tree and install the build prerequisites and the Sage library::
132132

133133
$ ./bootstrap
134-
$ pip install --no-build-isolation -v -v --editable ./pkgs/sage-conf_conda ./pkgs/sage-setup
134+
$ pip install --no-build-isolation -v -v --editable ./pkgs/sage-setup
135135
$ pip install --no-build-isolation --config-settings editable_mode=compat -v -v --editable ./src
136136

137+
If you encounter any errors, try to install the ``sage-conf`` package first::
138+
139+
$ pip install --no-build-isolation -v -v --editable ./pkgs/sage-conf_conda
140+
141+
and then run the last command again.
142+
137143
- Verify that Sage has been installed::
138144

139145
$ sage -c 'print(version())'

src/pyproject.toml.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ requires = [
66
# Note that PEP517/518 have no notion of optional sage_spkg dependencies:
77
# https://github.com/pypa/pip/issues/6144
88
esyscmd(`sage-get-system-packages install-requires-toml \
9-
sage_conf \
109
setuptools \
1110
wheel \
1211
sage_setup \

src/setup.cfg.m4

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ include(`setup_cfg_metadata.m4')dnl'
1111
[options]
1212
python_requires = >=3.9, <3.13
1313
install_requires =
14-
SPKG_INSTALL_REQUIRES_sage_conf
1514
SPKG_INSTALL_REQUIRES_six
1615
dnl From build/pkgs/sagelib/dependencies
1716
SPKG_INSTALL_REQUIRES_conway_polynomials

0 commit comments

Comments
 (0)