Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build sagelib from build/pkgs/sagelib/src, fix setup.py sdist, add spkg-src and tox.ini #29950

Closed
mkoeppe opened this issue Jun 24, 2020 · 57 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Jun 24, 2020

As a follow-up to #29411, we set up a separate directory build/pkgs/sagelib/src with symlinks into SAGE_ROOT/src so that sagelib's setup.py does not have access to the whole tree SAGE_ROOT/src.

We fix setup.py sdist, which can be tested using spkg-src (which builds a pip-installable tarball in upstream/) and tox:

./sage -sh -c '(cd build/pkgs/sagelib/src && tox -v -v)'
./sage -sh -c 'build/pkgs/sagelib/src/.tox/python/bin/sage-ipython'

The call of ./sage -sh is necessary so that SAGE_LOCAL is set.
Moreover, for scripts that use sage-env, also SAGE_ENV_SOURCED is crucial for the correct operation; otherwise sage-env sets things based on SAGE_LOCAL again.

Depends on #29701

CC: @kiwifb @jhpalmieri @dimpase @kliem @isuruf @vbraun

Component: refactoring

Author: Matthias Koeppe

Branch/Commit: ccc67b0

Reviewer: Dima Pasechnik

Issue created by migration from https://trac.sagemath.org/ticket/29950

@mkoeppe mkoeppe added this to the sage-9.2 milestone Jun 24, 2020
@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 24, 2020

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 24, 2020

Commit: 1ab75a9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 24, 2020

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

0459006.gitignore: Ignore generated files in build/pkgs/*/src
1ab75a9Build sagelib using the installed sage_setup

@mkoeppe mkoeppe changed the title Build sagelib using the installed sage_setup Build sagelib using the installed sage_setup, add spkg-src Jun 24, 2020
@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 24, 2020

Work Issues: add spkg-src

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 24, 2020

Author: Matthias Koeppe

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 25, 2020

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

3d83c12build/pkgs/sagelib/spkg-src: New
a2bde50src/MANIFEST.in: prune .tox
4b258d3src/MANIFEST.in: Remove bitrotted file
a29cd2dbuild/pkgs/sagelib/MANIFEST.in: New

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 25, 2020

Changed commit from 1ab75a9 to a29cd2d

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 25, 2020

Changed work issues from add spkg-src to Fixup MANIFEST.in

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

comment:8

sdist is broken: Files named ** end up in the tar file.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

Changed dependencies from #29411, #29847 to #29411, #29847, #29701

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

comment:10

sagemath/cypari2#93

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 28, 2020

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

7f8850asrc/module_list.py: Document that it is obsolete
26a85a4Merge branch 't/29702/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup' into t/29701/replace_use_of_module_list_optionalextension
5d5803esrc/sage/graphs/planarity.pyx: Add forgotten distutils directive
a0be9b6Merge branch 't/29790/move_extension_options_from_src_module_list_py_to__distutils___directives_in_the_individual_files__part_5__sage_graphs_' into t/29701/replace_use_of_module_list_optionalextension
14396afMerge tag '9.2.beta2' into t/29701/replace_use_of_module_list_optionalextension
821e337Merge branch 't/29701/replace_use_of_module_list_optionalextension' into t/29950/build_sagelib_using_installed_sage_setup
eeb6ba4build/pkgs/sagelib/src/requirements.txt, tox.ini: New
ce8b84dbuild/pkgs/sagelib/src/MANIFEST.in: Prune sage/ext/interpreters
a9a1335build/pkgs/sagelib/src/requirements.txt: Add packages required for runtime
c3b8f8fSuggest tox -v -v

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 28, 2020

Changed commit from a29cd2d to c3b8f8f

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

Changed work issues from Fixup MANIFEST.in to Rebase away from #29847

@mkoeppe mkoeppe changed the title Build sagelib using the installed sage_setup, add spkg-src Build sagelib from build/pkgs/sagelib/src, fix setup.py sdist, add spkg-src and tox.ini Jun 28, 2020
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 28, 2020

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

cdf501fbuild/pkgs/sagelib/spkg-src: New
ef4f5b8Move src/MANIFEST.in to build/pkgs/sagelib/MANIFEST.in, fix up
233f6babuild/pkgs/sagelib/src/requirements.txt, tox.ini: New
177cd4cbuild/pkgs/sagelib/src/MANIFEST.in: Prune sage/ext/interpreters
07b29fbbuild/pkgs/sagelib/src/requirements.txt: Add packages required for runtime
ad33705Suggest tox -v -v
481e212.gitignore: Ignore generated files in build/pkgs/*/src
9955a3fBuild sagelib from build/pkgs/sagelib/src

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 28, 2020

Changed commit from c3b8f8f to 9955a3f

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

Changed dependencies from #29411, #29847, #29701 to #29411, #29701

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

Changed work issues from Rebase away from #29847 to none

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

comment:15
    from .maxima import maxima, Maxima
  File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/build/pkgs/sagelib/src/.tox/python/lib/python3.7/site-packages/sage/interfaces/maxima.py", line 1236, in <module>
    script_subdirectory=None)
  File "/Users/mkoeppe/s/sage/sage-rebasing/worktree-algebraic-2018-spring/build/pkgs/sagelib/src/.tox/python/lib/python3.7/site-packages/sage/interfaces/maxima.py", line 528, in __init__
    raise RuntimeError('You must get the file local/bin/sage-maxima.lisp')
RuntimeError: You must get the file local/bin/sage-maxima.lisp

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

Changed dependencies from #29411, #29701 to #29411, #29701, #27171

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 28, 2020

Changed dependencies from #29411, #29701, #27171 to #29411, #29701, #21559

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 28, 2020

Branch pushed to git repo; I updated commit sha1. Last 10 new commits:

875940dtrac 29111: more tinkering. Fix doctests in tests/cmdline.py.
4a3d36eMove 'sage -app' back to src/bin/sage
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
a56dc35Merge tag '9.2.beta1' into t/29702/public/move_all_code_from_src_setup_py__src_fpickle_setup_py_to_sage_setup
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
08f5175Merge branch 'u/mkoeppe/change-src-bin-installation' of git://trac.sagemath.org/sage into t/29950/build_sagelib_using_installed_sage_setup

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 28, 2020

Changed commit from 9955a3f to 08f5175

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 8, 2020

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
4344f89Merge branch 't/21559/change-src-bin-installation' into t/29950/build_sagelib_using_installed_sage_setup

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 3, 2020

Changed commit from 4344f89 to 01b96b0

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 3, 2020

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

fcad518Merge tag '9.2.beta7' into t/29701/replace_use_of_module_list_optionalextension
55c3fbcsrc/sage_setup/clean.py: Fix doctest
01b96b0Merge branch 't/29701/replace_use_of_module_list_optionalextension' into t/29950/build_sagelib_using_installed_sage_setup

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 3, 2020

Changed dependencies from #29411, #29701, #21559 to #29701

@dimpase
Copy link
Member

dimpase commented Aug 5, 2020

comment:37

lgtm

@dimpase
Copy link
Member

dimpase commented Aug 5, 2020

Reviewer: Dima Pasechnik

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 8, 2020

comment:38

Failing doctest needs work as noted in #29701.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 8, 2020

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

8a19fe2build/make/Makefile.in (sagelib-clean): Clean the new build location

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 8, 2020

Changed commit from 01b96b0 to 8a19fe2

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 8, 2020

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

ccc67b0src/sage_setup: Update cythonized_dir in doctests

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 8, 2020

Changed commit from 8a19fe2 to ccc67b0

@dimpase
Copy link
Member

dimpase commented Aug 10, 2020

comment:42

ok

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 10, 2020

comment:43

Thanks!

@vbraun
Copy link
Member

vbraun commented Aug 12, 2020

Changed branch from u/mkoeppe/build_sagelib_using_installed_sage_setup to ccc67b0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants