Opened 2 years ago

Last modified 22 months ago

#29850 closed enhancement

Install sage-env-config as part of sage_conf; make sage-env-config optional — at Version 23

Reported by: Matthias Köppe Owned by:
Priority: major Milestone: sage-9.3
Component: build Keywords: sd111
Cc: John Palmieri, François Bissey, Michael Orlitzky, Dima Pasechnik, Isuru Fernando, Tobias Diez Merged in:
Authors: Matthias Koeppe Reviewers:
Report Upstream: N/A Work issues:
Branch: u/mkoeppe/install_sage_env_config_with_sage_conf (Commits, GitHub, GitLab) Commit: 709ebca31bd68a64865b6251b264fcd5a2e38aa7
Dependencies: #21559 Stopgaps:

Status badges

Description (last modified by Matthias Köppe)

As a follow-up to #21559 and #30128, we reassign sage-env-config from the package sagelib to the package sage_conf.

Because from the viewpoint of sagelib, the package sage_conf is optional, we change various scripts that source sage-env-config so that this file is not required.


Part of Meta-ticket #21707: Split sage-env into 5 to clean up sage configuration

Change History (23)

comment:1 Changed 2 years ago by Matthias Köppe

Dependencies: #29825
Description: modified (diff)

comment:2 Changed 2 years ago by Matthias Köppe

Dependencies: #29825#29825, #21559

comment:3 Changed 2 years ago by Matthias Köppe

Branch: u/mkoeppe/install_sage_env_config_with_sage_conf

comment:4 Changed 2 years ago by Matthias Köppe

Commit: dacea8b8d9a58555003d425957093b11ad0952fd
Dependencies: #29825, #21559#29825, #21559, #29803

Branch on this ticket does NOT work because pip/setuptools do not handle the symlink well.


Last 10 new commits:

70378edbuild/pkgs/pip/dependencies: Add wheel, simplify $(PYTHON) python3 to $(PYTHON)
10a2bacbuild/pkgs/setuptools, build/pkgs/pip: Remove python2 support from dependencies, install scripts
6755adbbuild/pkgs/pkgconfig/spkg-install.in: Remove pyproject.toml so that pip installs using setup.py
29327d3build/pkgs/entrypoints: Do not provide setup.py, not needed for entrypoints 0.3
bcc79a5build/pkgs/entrypoints/spkg-install.in: Remove pyproject.toml so that setup.py is used
361b98bbuild/pkgs/terminado/spkg-install.in: Remove pyproject.toml so that setup.py is used
5040d7ebuild/pkgs/testpath/spkg-install.in: Remove pyproject.toml so that setup.py is used
371ede6build/pkgs/zope_interface: Change to a dummy script package
10a2bacMerge branch 't/29803/upgrade_setuptools__pip__2020_06_' into t/29850/install_sage_env_config_with_sage_conf
dacea8bWIP: Install sage-env-config with sage_conf

comment:5 Changed 2 years ago by Matthias Köppe

Perhaps it's easier to get rid of sage-env-config altogether (#29852).

Last edited 2 years ago by Matthias Köppe (previous) (diff)

comment:6 Changed 2 years ago by Matthias Köppe

Summary: Install sage-env-config with sage_confInstall sage-env-config as part of sage_conf

comment:7 in reply to:  4 Changed 2 years ago by Matthias Köppe

Replying to mkoeppe:

Branch on this ticket does NOT work because pip/setuptools do not handle the symlink well.

Using flit instead of setuptools (#29854) does not help for this ticket because flit does not know how to install prepared shell scripts -- it can only install Python scripts

comment:8 Changed 2 years ago by git

Commit: dacea8b8d9a58555003d425957093b11ad0952fd5f7b1cc40b66a94030e3e53607e2f0350363e40a

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

1ee054cFixup
5f7b1ccMerge branch 't/21559/change-src-bin-installation' into t/29850/install_sage_env_config_with_sage_conf

comment:9 in reply to:  4 Changed 2 years ago by Matthias Köppe

Replying to mkoeppe:

Branch on this ticket does NOT work because pip/setuptools do not handle the symlink well.

It would probably suffice to just replace the use of pip by setup.py install.

comment:10 Changed 2 years ago by Matthias Köppe

Cc: John Palmieri François Bissey added
Description: modified (diff)

comment:11 Changed 2 years ago by Matthias Köppe

Work issues: use setup.py install, add spkg-src

comment:12 Changed 2 years ago by git

Commit: 5f7b1cc40b66a94030e3e53607e2f0350363e40a308ca6971af903adf4822e5349ef665cddc1e08a

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

ae07682Merge tag '9.2.beta1' into t/29850/install_sage_env_config_with_sage_conf
a4e4124build/pkgs/sage_conf/spkg-install: Install with setup.py instead of pip
308ca69build/pkgs/sage_conf/spkg-src: New

comment:13 Changed 2 years ago by Matthias Köppe

Work issues: use setup.py install, add spkg-srcmake sage-env-config optional for sage-env

comment:14 Changed 2 years ago by Matthias Köppe

Description: modified (diff)
Work issues: make sage-env-config optional for sage-env

comment:15 Changed 2 years ago by Matthias Köppe

Authors: Matthias Koeppe
Status: newneeds_review

comment:16 Changed 2 years ago by Matthias Köppe

Work issues: Move sage_conf.py to SAGE_ROOT/src/, symlink to there

comment:17 Changed 2 years ago by Matthias Köppe

(comment was meant for a different ticket)

Last edited 2 years ago by Matthias Köppe (previous) (diff)

comment:18 Changed 2 years ago by Matthias Köppe

Work issues: Move sage_conf.py to SAGE_ROOT/src/, symlink to there

comment:19 Changed 2 years ago by git

Commit: 308ca6971af903adf4822e5349ef665cddc1e08a03301806c3b9d41fdfaf576fd84ac887f4156e1a

Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:

3a0193csrc/bin/sage: Remove handling of 'sage -axiom'
6b04075Merge branch 't/29111/specify_a_subset_of_sage_command_line_options_that_are_supported_by_sagelib___rather_than_sage_the_distribution' into t/21559/change-src-bin-installation
9c7116bsrc/bin/sage-list-optional, sage-list-experimental, sage-list-standard: Remove deprecated scripts
831cc09Merge branch 't/29920/remove_deprecated_scripts_sage_list_optional__sage_list_experimental__sage_list_standard' into t/21559/change-src-bin-installation
e3eca85Merge branch 'public/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup' of git://trac.sagemath.org/sage into t/21559/change-src-bin-installation
7d29141src/setup.py: Do not install removed script sage-rsyncdist
c5f7f2fMerge tag '9.2.beta3' into t/21559/change-src-bin-installation
6bc0cd4Install sage-env-config with sage_conf
5e6ca95build/pkgs/sage_conf/spkg-install: Install with setup.py instead of pip
0330180build/pkgs/sage_conf/spkg-src: New

comment:20 Changed 2 years ago by Matthias Köppe

Dependencies: #29825, #21559, #29803#21559

Rebased away from #29825, on top of updated #21559 (on top of 9.2.beta3)

comment:21 Changed 2 years ago by git

Commit: 03301806c3b9d41fdfaf576fd84ac887f4156e1a709ebca31bd68a64865b6251b264fcd5a2e38aa7

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

3953671Merge tag '9.2.beta4' into t/29111/specify_a_subset_of_sage_command_line_options_that_are_supported_by_sagelib___rather_than_sage_the_distribution
19d7f67Merge branch 't/29111/specify_a_subset_of_sage_command_line_options_that_are_supported_by_sagelib___rather_than_sage_the_distribution' into t/21559/change-src-bin-installation
709ebcaMerge branch 't/21559/change-src-bin-installation' into t/29850/install_sage_env_config_with_sage_conf

comment:22 Changed 2 years ago by Matthias Köppe

Cc: Michael Orlitzky added

comment:23 Changed 2 years ago by Matthias Köppe

Description: modified (diff)
Summary: Install sage-env-config as part of sage_confInstall sage-env-config as part of sage_conf; make sage-env-config optional
Note: See TracTickets for help on using tickets.