-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
./configure --enable-editable #31377
Comments
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:7
This almost works for me, except for some errors building modules:
This is probably coming from the fact that the C++ std options that |
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
|
comment:9
I have merged #31365, which adds directives to files using NTL; and added a few more distutils directives so that things don't depend so much on the code in |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:13
This seems to reasonably work well here on macOS. There are a small number of doctest failures.
The last one is due to the fact that in the editable install all This will need a new solution to suppress the doctests of such modules - see #30778 ( |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:16
please stop adding me in cc |
comment:17
So how does one test this? |
This comment has been minimized.
This comment has been minimized.
comment:19
I've added quick instructions to the ticket description |
Reviewer: Matthias Koeppe, ... |
Changed reviewer from Matthias Koeppe, ... to Matthias Koeppe, Tobias Diez, ... |
comment:113
I'm happy with it, but didn't have the time to understand everything yet. |
Changed reviewer from Matthias Koeppe, Tobias Diez, ... to Matthias Koeppe, Tobias Diez, Jonathan Kliem |
comment:114
LGTM. I don't know if setting |
comment:115
Thanks! I've added your suggestion to #31406. |
comment:116
Thanks for the review! |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
Changed branch from u/mkoeppe/__configure___enable_editable to |
comment:120
I finally tracked this ticket has the breaking point of the way I build the documentation in sage-on-gentoo. This ticket not #30010. Unlike the current philosophy pursued by vanilla sage in distro we usually build documentation before installing. There are philosophy discussions to be had about the approaches. I am sometimes not even completely sure how things work. But here the reason is simple, before this ticket, all the sources where copied under Is there a switch to pass to |
Changed commit from |
comment:121
I don't think this ticket changes anything if you don't use |
comment:122
Just be sure to use |
comment:123
I am working on top of Volker's merging branch to figure issues before they hit me when a beta is released. When the beta, rc or final release arrive I usually have worked out the issues. I have bisected the change of behavior to this ticket. By the sound of it, the change of behavior is accidental and you have no idea or care about it. On a side note since you are mentioning it, I am not currently using |
comment:126
Replying to @mkoeppe:
I hadn't realised how much they diverged from each other. It feels like some tickets patch one but not the other and so on. Regardless of my issues and divergence in philosophy, as I called it, if the version in |
comment:127
No, as of this ticket, it's used for |
comment:128
I think I am starting to get the picture. So those large looking differences are on purpose? |
comment:129
It sounds like it would be good to add some explanatory comments at the top of |
comment:130
Replying to @kiwifb:
Yes! And yes, we'll have to add some documentation. I'll do this in #31386 (which will reduce the amount of duplication between the two |
This configure switch will install sagelib in "develop" ("editable", "in-place") mode instead of using sagelib's custom incremental build system.
This will clutter the source directory with build artifacts (which are
.gitignore
'd, of course) but it has the benefit that for changes to Python files, one does not need to run./sage -b
; restarting Sage is enough.It may also have benefits in certain develop environments that get confused by sagelib's nonstandard build system.
This ticket is based on a subset of the changes in #30371, which developed a version of
setup.py
suitable for the in-place build. This version issrc/setup.py
and distinct frombuild/pkgs/sagelib/src/setup.py
.The configure switch switches to this version of the build system.
To test:
Then use and test as normal. Verify that
local/lib/...site-packages/
no longer contains a copy ofsage
- instead there is an "egg-link" back to the source directory.Switching to a standard build system (getting rid of the sage-specific "installation cleaner") will also simplify the next step of the modularization effort (#29705).
Depends on #30770
Depends on #30912
Depends on #31357
Depends on #31365
Depends on #31389
Depends on #31390
CC: @tobiasdiez @jhpalmieri @fchapoton @videlec @isuruf @kliem @tscrim
Component: build
Author: Tobias Diez, Matthias Koeppe
Branch:
8b3f390
Reviewer: Matthias Koeppe, Tobias Diez, Jonathan Kliem
Issue created by migration from https://trac.sagemath.org/ticket/31377
The text was updated successfully, but these errors were encountered: