Move all code from src/setup.py, src/fpickle_setup.py to sage_setup
Closed this issue · 53 comments
This is preparation for splitting sagelib into separate distutils packages, but a useful cleanup in any case.
As a follow-up of this ticket, as part of Meta-ticket #29705, the remaining very short src/setup.py should probably be moved to build/pkgs/sagelib/src/ (alongside a symlink src -> SAGE_ROOT/src)
Depends on #29411
CC: @kiwifb @vbraun @isuruf @dimpase @jhpalmieri @fchapoton @orlitzky
Component: refactoring
Keywords: sd109
Author: Matthias Koeppe
Branch: a56dc35
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/29702
Description changed:
---
+++
@@ -1,2 +1,3 @@
This is preparation for splitting sagelib into separate distutils packages.
+When done, the remaining very short `setup.py` should probably be moved to `build/pkgs/sagelib/src/` (alongside a symlink src -> SAGE_ROOT/src)Commit: 423ad52
Branch pushed to git repo; I updated commit sha1. New commits:
758aa13 | src/setup.py: Move classes sage_build_* to new modules sage_setup.command.sage_* |
Branch pushed to git repo; I updated commit sha1. New commits:
9e6e021 | src/setup.py: Move excepthook to new module sage_setup.excepthook |
Description changed:
---
+++
@@ -1,3 +1,5 @@
This is preparation for splitting sagelib into separate distutils packages.
-When done, the remaining very short `setup.py` should probably be moved to `build/pkgs/sagelib/src/` (alongside a symlink src -> SAGE_ROOT/src)
+As a follow-up of this ticket, the remaining very short `setup.py` should probably be moved to `build/pkgs/sagelib/src/` (alongside a symlink src -> SAGE_ROOT/src)
+
+Author: Matthias Koeppe
Description changed:
---
+++
@@ -1,4 +1,4 @@
-This is preparation for splitting sagelib into separate distutils packages.
+This is preparation for splitting sagelib into separate distutils packages, but a useful cleanup in any case.
As a follow-up of this ticket, the remaining very short `setup.py` should probably be moved to `build/pkgs/sagelib/src/` (alongside a symlink src -> SAGE_ROOT/src)
Branch pushed to git repo; I updated commit sha1. New commits:
24800f5 | sage.graphs.graph_decompositions: Make it a namespace package by removing __init__.py (which had unnecessary reimports only) |
f29d703 | Mark src/sage/ext_data as directories that are not namespace packages |
bceab3a | sage_setup.find.find_python_sources: Handle native namespace packages and 'nonamespace' files |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
(that was pushed to wrong ticket; fixed)
Ready for review
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
62f2841 | Merge branch 't/29697/src_setup_py__src_sage_env_py__sage_include_directories___do_not_add_another_copy_of_sage_inc__sage_local_lib_to_include_dirs__library_dirs' into t/29411/make_sagelib_a_script_package |
048ce5b | build/pkgs/sagelib/spkg-install: Also poison environment variables SAGE_LOCAL etc. |
4590c4c | build/pkgs/sagelib/spkg-install: Add comment regarding SAGE_SPKG_INST |
ed312c5 | build/pkgs/sagelib/spkg-install: Also poison SAGE_PKGCONFIG, SAGE_SPKG_SCRIPTS |
6ee66dd | src/setup.py: Update comment (not specific to gcc) |
0a7fb48 | Move src/fpickle_setup.py to srs/sage_setup/ |
f4a9269 | src/setup.py: Move class sage_install to new module sage_setup.command.sage_install |
5660d8f | src/module_list.py: Move library_order to new module sage_setup.library_order |
43d4f83 | src/setup.py: Move classes sage_build_* to new modules sage_setup.command.sage_* |
09e3297 | src/setup.py: Move excepthook to new module sage_setup.excepthook |
Changed keywords from none to sd109
Branch pushed to git repo; I updated commit sha1. New commits:
1cfed7c | build/pkgs/sagelib/spkg-install: Do not poison SAGE_LOCAL, used in script installed by spkg pkgconf |
62c7531 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
b3102e9 | Merge tag '9.2.beta0' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
Branch pushed to git repo; I updated commit sha1. New commits:
2b42029 | src/sage_setup/command/__init__.py: New |
Branch pushed to git repo; I updated commit sha1. New commits:
a830304 | src/sage_setup/command/sage_build_cython.py: Fix adding setup.py as dependency |
Branch pushed to git repo; I updated commit sha1. New commits:
38b6bcf | Merge tag '9.2.beta0' into t/29411/make_sagelib_a_script_package |
f9a30f6 | build/pkgs/sagelib/spkg-install: Fix up error exits |
00a1d57 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
Description changed:
---
+++
@@ -1,5 +1,5 @@
This is preparation for splitting sagelib into separate distutils packages, but a useful cleanup in any case.
-As a follow-up of this ticket, the remaining very short `setup.py` should probably be moved to `build/pkgs/sagelib/src/` (alongside a symlink src -> SAGE_ROOT/src)
+As a follow-up of this ticket, as part of Meta-ticket #29705, the remaining very short `src/setup.py` should probably be moved to `build/pkgs/sagelib/src/` (alongside a symlink `src` -> `SAGE_ROOT/src`)
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
d0dff56 | Trac #29345: replace a few uses of "source" with "." |
5ac420b | Trac #29345: fix some bashisms in sage-env's resolvelinks() function. |
0a61795 | Trac #29345: don't force SHELL=bash any longer. |
5db5318 | Trac #29345: remove "break" statements from AC_SEARCH_LIBS. |
e810ad1 | Trac #29345: don't use sage's config.status for the lrcalc build. |
93c9921 | Trac #29345: replace the function that populates the CVXOPT_* variables. |
0e66a0a | Trac #29345: add Dima's SPKG patches for ksh compatibility. |
df3f05e | build/make/Makefile.in [SCRIPT_PACKAGE_templ]: cd into the SPKG directory; adjust spkg-install scripts |
5372065 | Merge branch 't/29793/script_packages_should_cd_into_the_spkg_directory' into t/29411/make_sagelib_a_script_package |
c166b97 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
please rebase this over 9.2.beta1
rebased over rebased #29411
Last 10 new commits:
b212ce8 | build/pkgs/sagelib/spkg-install: Fix up error exits |
5790687 | build/bin/write-dockerfile.sh: Do not ADD removed file src/Makefile.in |
851ab76 | Make sagelib a script package |
f39a017 | Move src/fpickle_setup.py to srs/sage_setup/ |
363f792 | src/setup.py: Move class sage_install to new module sage_setup.command.sage_install |
a7cde9c | src/module_list.py: Move library_order to new module sage_setup.library_order |
7c4bbf6 | src/setup.py: Move classes sage_build_* to new modules sage_setup.command.sage_* |
ddc49aa | src/setup.py: Move excepthook to new module sage_setup.excepthook |
9cff0c6 | src/sage_setup/command/__init__.py: New |
56705f8 | src/sage_setup/command/sage_build_cython.py: Fix adding setup.py as dependency |
Argh! I have a million tickets depending on this
Reviewer: Dima Pasechnik
well, I don't quite know how to deal with it. The rebased branch works for me. Should we revert all these rebases, and just hope that the merges will work?
Yes, please restore to the unrebased ones. I know that the merges work, I am already testing on them
It's also fine with me if you merge in the current develop, but rebasing is too disruptive.
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. This was a forced push. Last 10 new commits:
5db5318 | Trac #29345: remove "break" statements from AC_SEARCH_LIBS. |
e810ad1 | Trac #29345: don't use sage's config.status for the lrcalc build. |
93c9921 | Trac #29345: replace the function that populates the CVXOPT_* variables. |
0e66a0a | Trac #29345: add Dima's SPKG patches for ksh compatibility. |
df3f05e | build/make/Makefile.in [SCRIPT_PACKAGE_templ]: cd into the SPKG directory; adjust spkg-install scripts |
5372065 | Merge branch 't/29793/script_packages_should_cd_into_the_spkg_directory' into t/29411/make_sagelib_a_script_package |
c166b97 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
cc30471 | build/bin/write-dockerfile.sh: Do not ADD removed file src/Makefile.in |
8a41326 | Merge branch 't/29411/make_sagelib_a_script_package' into t/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
a56dc35 | Merge tag '9.2.beta1' into t/29702/public/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup |
Replying to @mkoeppe:
It's also fine with me if you merge in the current develop
Did that, needs review
lgtm
Thank you!
Changed branch from public/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup to a56dc35
Thank you, the setup.py looks sooo much cleaner now.