Install sage-env-config as part of sage_conf
mkoeppe opened this issue · 64 comments
As a follow-up to #21559 and #30128, we reassign sage-env-config from the package sagelib to the package sage_conf.
(After #22731, sage-env-config is no longer required by the sage script.)
(This is preparation for allowing installation of sagelib for example in a conda environment without having to run ./configure first - see #28745, #30845.)
Part of Meta-ticket #21707: Split sage-env into 5 to clean up sage configuration
Depends on #31002
CC: @jhpalmieri @kiwifb @orlitzky @dimpase @isuruf @tobiasdiez
Component: build
Keywords: sd111
Author: Matthias Koeppe
Branch/Commit: 4b52dcf
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/29850
Description changed:
---
+++
@@ -1 +1,3 @@
+
+Part of Meta-ticket #21707: Split sage-env into 5 to clean up sage configurationBranch on this ticket does NOT work because pip/setuptools do not handle the symlink well.
Last 10 new commits:
70378ed | build/pkgs/pip/dependencies: Add wheel, simplify $(PYTHON) python3 to $(PYTHON) |
10a2bac | build/pkgs/setuptools, build/pkgs/pip: Remove python2 support from dependencies, install scripts |
6755adb | build/pkgs/pkgconfig/spkg-install.in: Remove pyproject.toml so that pip installs using setup.py |
29327d3 | build/pkgs/entrypoints: Do not provide setup.py, not needed for entrypoints 0.3 |
bcc79a5 | build/pkgs/entrypoints/spkg-install.in: Remove pyproject.toml so that setup.py is used |
361b98b | build/pkgs/terminado/spkg-install.in: Remove pyproject.toml so that setup.py is used |
5040d7e | build/pkgs/testpath/spkg-install.in: Remove pyproject.toml so that setup.py is used |
371ede6 | build/pkgs/zope_interface: Change to a dummy script package |
10a2bac | Merge branch 't/29803/upgrade_setuptools__pip__2020_06_' into t/29850/install_sage_env_config_with_sage_conf |
dacea8b | WIP: Install sage-env-config with sage_conf |
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.
Description changed:
---
+++
@@ -1,3 +1,7 @@
+As a follow-up to #21559, we reassign `sage-env-config` from the package `sagelib` to the package `sage_conf`.
+Because from the viewpoint of `sagelib`, `sage_conf` is optional, we change `sage-env` so that it does not require the existence of `sage-env-config`.
+
+---
Part of Meta-ticket #21707: Split sage-env into 5 to clean up sage configurationWork Issues: use setup.py install, add spkg-src
Changed work issues from use setup.py install, add spkg-src to make sage-env-config optional for sage-env
Changed work issues from make sage-env-config optional for sage-env to none
Description changed:
---
+++
@@ -1,7 +1,8 @@
As a follow-up to #21559, we reassign `sage-env-config` from the package `sagelib` to the package `sage_conf`.
-Because from the viewpoint of `sagelib`, `sage_conf` is optional, we change `sage-env` so that it does not require the existence of `sage-env-config`.
+Because from the viewpoint of `sagelib`, `sage_conf` is optional, we will change `sage-env` in a follow-up ticket (#29951) so that it does not require the existence of `sage-env-config`.
---
Part of Meta-ticket #21707: Split sage-env into 5 to clean up sage configuration
+Author: Matthias Koeppe
Work Issues: Move sage_conf.py to SAGE_ROOT/src/, symlink to there
(comment was meant for a different ticket)
Changed work issues from Move sage_conf.py to SAGE_ROOT/src/, symlink to there to none
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
3a0193c | src/bin/sage: Remove handling of 'sage -axiom' |
6b04075 | Merge 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 |
9c7116b | src/bin/sage-list-optional, sage-list-experimental, sage-list-standard: Remove deprecated scripts |
831cc09 | Merge branch 't/29920/remove_deprecated_scripts_sage_list_optional__sage_list_experimental__sage_list_standard' into t/21559/change-src-bin-installation |
e3eca85 | Merge 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 |
7d29141 | src/setup.py: Do not install removed script sage-rsyncdist |
c5f7f2f | Merge tag '9.2.beta3' into t/21559/change-src-bin-installation |
6bc0cd4 | Install sage-env-config with sage_conf |
5e6ca95 | build/pkgs/sage_conf/spkg-install: Install with setup.py instead of pip |
0330180 | build/pkgs/sage_conf/spkg-src: New |
Branch pushed to git repo; I updated commit sha1. New commits:
3953671 | Merge 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 |
19d7f67 | Merge 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 |
709ebca | Merge branch 't/21559/change-src-bin-installation' into t/29850/install_sage_env_config_with_sage_conf |
Description changed:
---
+++
@@ -1,6 +1,6 @@
-As a follow-up to #21559, we reassign `sage-env-config` from the package `sagelib` to the package `sage_conf`.
+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`, `sage_conf` is optional, we will change `sage-env` in a follow-up ticket (#29951) so that it does not require the existence of `sage-env-config`.
+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.
---
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
53805b0 | src/bin/sage-env: Make SAGE_ROOT and SAGE_LOCAL optional |
09584ea | Merge tag '9.2.beta14' into t/29951/src_bin_sage_env__make_sage_env_config_and_sage_local_optional |
a2571b1 | Merge tag '9.2' into t/29951/src_bin_sage_env__make_sage_env_config_and_sage_local_optional |
9ba8cf2 | Merge tag '9.3.beta0' into t/29951/src_bin_sage_env__make_sage_env_config_and_sage_local_optional |
c8e6910 | Merge tag '9.3.beta1' into t/29951/src_bin_sage_env__make_sage_env_config_and_sage_local_optional |
9ab593c | Install sage-env-config with sage_conf |
a361580 | build/pkgs/sage_conf/spkg-src: New |
Branch pushed to git repo; I updated commit sha1. New commits:
d02b597 | build/pkgs/sagelib/src/setup.py: Do not install sage-env-config |
Branch pushed to git repo; I updated commit sha1. New commits:
1b4bc99 | src/bin/sage: Only source sage-env-config if it exists |
Branch pushed to git repo; I updated commit sha1. New commits:
a1a6df5 | src/bin/sage: Use python3 etc. from PATH instead of using SAGE_LOCAL |
Description changed:
---
+++
@@ -1,6 +1,9 @@
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.
+
+(This is preparation for allowing installation of sagelib for example in a conda environment without having to run ./configure first - see #28745, #30845.)
+
---
Reviewer: Dima Pasechnik
lgtm
Thanks!
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
4577f37 | src/bin/sage-env: Make sage-env-config optional |
c35c170 | sage.env: Add SAGE_VENV |
c585d94 | src/sage: Replace some SAGE_LOCAL by SAGE_VENV |
2fd195f | src/bin/sage: Fix reference to trac ticket |
f3b7a9c | src/sage/env.py: Add documentation |
0e4764c | Merge branch 't/22731/22731' into t/29850/install_sage_env_config_with_sage_conf |
657eea0 | Install sage-env-config with sage_conf |
7e18730 | build/pkgs/sage_conf/spkg-src: New |
36e479c | build/pkgs/sagelib/src/setup.py: Do not install sage-env-config |
5dc4266 | build/pkgs/sage_conf/spkg-install: Build wheel manually |
Description changed:
---
+++
@@ -1,6 +1,6 @@
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.
+(After #22731, `sage-env-config` is no longer required by the `sage` script.)
(This is preparation for allowing installation of sagelib for example in a conda environment without having to run ./configure first - see #28745, #30845.)
Changed keywords from none to sd111
Branch pushed to git repo; I updated commit sha1. New commits:
a8e0364 | Specify bdist temp folder for WSL compatibility |
a3077c7 | Use mktemp |
c5a14a3 | build/bin/sage-dist-helpers (sdh_setup_bdist_wheel): New |
fb10429 | build/pkgs/*/spkg-install.in: Use new function sdh_setup_bdist_wheel |
5f11e24 | Merge branch 'public/build/bdist_wsl' of git://trac.sagemath.org/sage into t/29850/install_sage_env_config_with_sage_conf |
0773001 | Merge tag '9.3.beta3' into t/29850/install_sage_env_config_with_sage_conf |
4b52dcf | build/pkgs/sage_conf/spkg-install: Use sdh_setup_bdist_wheel |
Still needs review...
OK.
Thanks!
Changed branch from u/mkoeppe/install_sage_env_config_with_sage_conf to 4b52dcf