Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit f2e7075

Browse files
author
Matthias Koeppe
committed
Merge tag '9.2.beta13' into t/29500/install_all_python_packages_via_pip_wheel__create_pep_503_simple_repository_for_wheels
SageMath version 9.2.beta13, Release Date: 2020-09-21
2 parents 4135e8b + 468f238 commit f2e7075

File tree

210 files changed

+9369
-3091
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+9369
-3091
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
* text=auto eol=lf
33
# except for Windows batch files
44
*.{cmd,[cC][mM][dD]} text eol=crlf
5-
*.{bat,[bB][aA][tT]} text eol=crlf
5+
*.{bat,[bB][aA][tT]} text eol=crlf
6+
*.diff_bin binary

.github/workflows/ci-wsl.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Build & Test WSL
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
windows:
7+
runs-on: windows-latest
8+
name: Windows (using WSL)
9+
# Following https://trac.sagemath.org/ticket/25206#comment:63
10+
steps:
11+
- name: Configure git
12+
run: git config --global core.symlinks true
13+
- uses: actions/checkout@v2
14+
- name: Install Ubuntu 20.04 (in WSL)
15+
run: |
16+
(New-Object System.Net.WebClient).DownloadFile("https://aka.ms/wslubuntu2004", "Ubuntu.appx")
17+
Expand-Archive Ubuntu.appx
18+
Ubuntu\ubuntu2004.exe install --root
19+
- name: Install dependencies
20+
run: |
21+
Function ExtractPackages
22+
{
23+
param($path)
24+
@(Get-Content $path | Where-Object { !$_.StartsWith("#") })
25+
}
26+
$packages = Get-ChildItem build/pkgs -recurse -Include debian.txt, debian-bootstrap.txt | foreach-object { ExtractPackages $_.FullName } | sort -Unique
27+
# Add tox which is use to build
28+
$packages += 'tox'
29+
echo "Install the following packages:" @packages
30+
# Add deadsnakes so that libpython3.7-dev is found
31+
& wsl sudo add-apt-repository ppa:deadsnakes/ppa
32+
# Install
33+
& wsl sudo apt-get update -y
34+
& wsl sudo apt-get install -y @packages
35+
- name: Build
36+
run: wsl tox -e local -- SAGE_NUM_THREADS=4 build
37+
env:
38+
# WSL runs everything as root, so we have to enable build as root user
39+
EXTRA_CONFIGURE_ARGS: "--enable-build-as-root"
40+
# If make is invoked in parellel (i.e. with -jN where N > 1), then we sometimes run into errors for some reason
41+
# So keep N small in order to minimize the risk
42+
MAKE: "make -j2"
43+
WSLENV: EXTRA_CONFIGURE_ARGS:MAKE
44+
- name: Test
45+
run: wsl tox -e local -- SAGE_NUM_THREADS=4 ptest
46+
- name: Prepare logs artifact
47+
run: mkdir -p "artifacts/logs"; cp -r .tox/*/log "artifacts/logs"
48+
shell: bash
49+
if: always()
50+
- uses: actions/upload-artifact@v1
51+
with:
52+
path: artifacts
53+
name: logs
54+
if: always()
55+
- name: Print out logs for immediate inspection
56+
# and markup the output with GitHub Actions logging commands
57+
run: .github/workflows/scan-logs.sh "artifacts/logs"
58+
shell: bash
59+
if: always()

.github/workflows/tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
run: |
202202
git config --global user.email "[email protected]"
203203
git config --global user.name "Sage GitHub CI"
204-
SAGE_ROOT=. SAGE_SRC=./src src/bin/sage-update-version $(git describe)
204+
SAGE_ROOT=. SAGE_SRC=./src src/bin/sage-update-version $(git describe) || echo "(ignoring error)"
205205
- name: make dist
206206
run: |
207207
./configure && make dist

.homebrew-build-env

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ for l in readline ; do
3131
CPATH="$HOMEBREW/opt/$l/include:$CPATH"
3232
fi
3333
done
34-
for l in "gcc@9/lib/gcc/9"; do
34+
for l in "gcc/lib/gcc/10 gcc/lib/gcc/9"; do
3535
if [ -d "$HOMEBREW/opt/$l" ]; then
3636
LIBRARY_PATH="$HOMEBREW/opt/$l:$LIBRARY_PATH"
37+
break
3738
fi
3839
done
3940
export LIBRARY_PATH

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
SageMath version 9.2.beta12, Release Date: 2020-09-06
1+
SageMath version 9.2.beta13, Release Date: 2020-09-21

bootstrap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ install_config_rpath() {
4242
echo >&2 "your PATH. E.g. Homebrew installs them in /usr/local/opt/gettext/bin."
4343
return 179
4444
fi
45-
eval `sed -n '/^prefix=.*$/p' $gettextize`
46-
eval `sed -n '/^datarootdir=.*$/p' $gettextize`
47-
eval `sed -n '/^: \${gettext_datadir=.*$/p' $gettextize`
45+
eval `sed -n '/^prefix=.*$/p' "$gettextize"`
46+
eval `sed -n '/^datarootdir=.*$/p' "$gettextize"`
47+
eval `sed -n '/^: \${gettext_datadir=.*$/p' "$gettextize"`
4848

4949
if [ -z "$gettext_datadir" ]; then
50-
eval `sed -n '/^gettext_dir=.*$/p' $gettextize`
50+
eval `sed -n '/^gettext_dir=.*$/p' "$gettextize"`
5151
# In older versions (before 2014) this is spelled gettext_dir
5252
# See https://github.com/autotools-mirror/gettext/commit/ff18897068486560e2bb421004cfbd42b7cdd0f8
5353
gettext_datadir="$gettext_dir"

build/bin/sage-spkg

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,10 @@
6969

7070
# Avoid surprises with character ranges [a-z] in regular expressions
7171
# See Trac #15791; some locales can produce different results for
72-
# character ranges (use C.UTF-8 to ensure UTF-8 default encoding in Python)
73-
export LC_ALL=C.UTF-8
72+
# character ranges; using C.UTF-8 to ensure UTF-8 default encoding in Python
73+
# introduces extra complications, see #30053, so we don't do it, but
74+
# assume we are on Python3.x, for x at least 7.
75+
export LC_ALL=C
7476

7577
usage()
7678
{
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
libbrial-dev libbrial-groebner-dev
1+
libbrial-dev
2+
libbrial-groebner-dev
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
libcdd-dev libcdd-tools
1+
libcdd-dev
2+
libcdd-tools
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
cliquer libcliquer-dev
1+
cliquer
2+
libcliquer-dev

0 commit comments

Comments
 (0)