File tree Expand file tree Collapse file tree 8 files changed +32
-3
lines changed Expand file tree Collapse file tree 8 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
SYSTEM=$( build/bin/sage-guess-package-system)
4
4
5
- if [ " $SYSTEM " = " fedora" ]; then
5
+ if [ " $SYSTEM " = " fedora" ] && [ -f /etc/fedora-release ] ; then
6
6
# Need to use --setopt=tsflags="" to avoid errors with gphelp
7
7
dnf5 install -y pari-gp --setopt=tsflags=" "
8
8
@@ -16,7 +16,8 @@ eval $(build/bin/sage-print-system-package-command $SYSTEM --yes --ignore-missin
16
16
17
17
# Disable build isolation following the advice of https://mesonbuild.com/meson-python/how-to-guides/editable-installs.html#build-dependencies
18
18
# Install build dependencies manually as workaround for https://github.com/astral-sh/uv/issues/1516
19
- uv venv
19
+ uv venv --clear
20
+ . $UV_PROJECT_ENVIRONMENT /bin/activate # https://github.com/astral-sh/uv/issues/14022
20
21
uv pip install \
21
22
meson-python \
22
23
" cypari2 >=2.2.1" \
@@ -27,4 +28,4 @@ uv pip install \
27
28
" numpy >=1.25" \
28
29
jinja2 \
29
30
setuptools
30
- uv sync --frozen --inexact --no-build-isolation -- config-settings=builddir=build/build-$SYSTEM
31
+ uv sync --frozen --inexact --no-build-isolation -v -- config-settings=builddir=build/build-$SYSTEM - $devcontainerId
Original file line number Diff line number Diff line change 13
13
"version" : " latest"
14
14
}
15
15
},
16
+ "containerEnv" : {
17
+ "devcontainerId" : " ${devcontainerId}" ,
18
+ "UV_PROJECT_ENVIRONMENT" : " .venv-${devcontainerId}"
19
+ },
16
20
"customizations" : {
17
21
"vscode" : {
18
22
"extensions" : [
Original file line number Diff line number Diff line change 10
10
"version" : " latest"
11
11
}
12
12
},
13
+ "containerEnv" : {
14
+ "devcontainerId" : " ${devcontainerId}" ,
15
+ "UV_PROJECT_ENVIRONMENT" : " .venv-${devcontainerId}"
16
+ },
13
17
"customizations" : {
14
18
"vscode" : {
15
19
"extensions" : [
Original file line number Diff line number Diff line change 10
10
"version" : " latest"
11
11
}
12
12
},
13
+ "containerEnv" : {
14
+ "devcontainerId" : " ${devcontainerId}" ,
15
+ "UV_PROJECT_ENVIRONMENT" : " .venv-${devcontainerId}"
16
+ },
13
17
"customizations" : {
14
18
"vscode" : {
15
19
"extensions" : [
Original file line number Diff line number Diff line change 10
10
"version" : " latest"
11
11
}
12
12
},
13
+ "containerEnv" : {
14
+ "devcontainerId" : " ${devcontainerId}" ,
15
+ "UV_PROJECT_ENVIRONMENT" : " .venv-${devcontainerId}"
16
+ },
13
17
"customizations" : {
14
18
"vscode" : {
15
19
"extensions" : [
Original file line number Diff line number Diff line change 10
10
"version" : " latest"
11
11
}
12
12
},
13
+ "containerEnv" : {
14
+ "devcontainerId" : " ${devcontainerId}" ,
15
+ "UV_PROJECT_ENVIRONMENT" : " .venv-${devcontainerId}"
16
+ },
13
17
"customizations" : {
14
18
"vscode" : {
15
19
"extensions" : [
Original file line number Diff line number Diff line change 10
10
"version" : " latest"
11
11
}
12
12
},
13
+ "containerEnv" : {
14
+ "devcontainerId" : " ${devcontainerId}" ,
15
+ "UV_PROJECT_ENVIRONMENT" : " .venv-${devcontainerId}"
16
+ },
13
17
"customizations" : {
14
18
"vscode" : {
15
19
"extensions" : [
Original file line number Diff line number Diff line change 14
14
"version" : " latest"
15
15
}
16
16
},
17
+ "containerEnv" : {
18
+ "devcontainerId" : " ${devcontainerId}" ,
19
+ "UV_PROJECT_ENVIRONMENT" : " .venv-${devcontainerId}"
20
+ },
17
21
"customizations" : {
18
22
"vscode" : {
19
23
"extensions" : [
You can’t perform that action at this time.
0 commit comments