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

sage-dist-helpers (sdh_pip_install): Change default to --build-isolation #33789

Closed
mkoeppe opened this issue May 3, 2022 · 15 comments
Closed

Comments

@mkoeppe
Copy link
Member

mkoeppe commented May 3, 2022

... hence, provisioning the build environment for each package from the stored wheels.

This gets us another step closer to using modern Python packaging infrastructure. It will make the build process more robust because it avoids concurrent read and write access to site-packages.

If it fails, it falls back the old behavior (--no-build-isolation) and issues a warning.

CC: @jhpalmieri

Component: build

Author: Matthias Koeppe

Branch/Commit: 378d704

Reviewer: John Palmieri

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

@mkoeppe mkoeppe added this to the sage-9.7 milestone May 3, 2022
@mkoeppe
Copy link
Member Author

mkoeppe commented May 3, 2022

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 29, 2022

Commit: f6ba526

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 29, 2022

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

738ab26build/bin/sage-dist-helpers (sdh_pip_install): Change default to --build-isolation
79c6002build/bin/sage-dist-helpers (sdh_pip_install): Fall back to --no-build-isolation on error
f6ba526build/pkgs/tomli/spkg-install.in: Build it with --no-build-isolation

@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jun 29, 2022

Author: Matthias Koeppe

@jhpalmieri
Copy link
Member

comment:5

Why does tomli require no-build-isolation? Also, a comment like "Our new default" is going to become dated. Maybe "The default as of Sage 9.7" instead?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 6, 2022

Changed commit from f6ba526 to caaef55

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 6, 2022

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

caaef55build/pkgs/tomli/spkg-install.in: Expand comments on build dependencies / isolation

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 6, 2022

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

378d704build/bin/sage-dist-helpers: In a comment, be more specific about what 'new' is

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jul 6, 2022

Changed commit from caaef55 to 378d704

@jhpalmieri
Copy link
Member

Reviewer: John Palmieri

@jhpalmieri
Copy link
Member

comment:8

To clarify, build with isolation is the default in pip, right? So it makes sense for us to switch to this, except in cases where necessary. If that's correct, feel free to set to "positive review" on my behalf.

(Sage builds, including lots of optional packages, with this branch.)

@mkoeppe
Copy link
Member Author

mkoeppe commented Jul 8, 2022

comment:9

Yes, it's the default in pip.

@mkoeppe
Copy link
Member Author

mkoeppe commented Jul 8, 2022

comment:10

Thanks!

@vbraun
Copy link
Member

vbraun commented Jul 9, 2022

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