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

+2-1
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

+59
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

+1-1
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

+2-1
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

+1-1
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

+4-4
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

+4-2
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
{

build/pkgs/brial/distros/debian.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
libbrial-dev libbrial-groebner-dev
1+
libbrial-dev
2+
libbrial-groebner-dev

build/pkgs/cddlib/distros/debian.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
libcdd-dev libcdd-tools
1+
libcdd-dev
2+
libcdd-tools

build/pkgs/cliquer/distros/debian.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
cliquer libcliquer-dev
1+
cliquer
2+
libcliquer-dev

build/pkgs/configure/checksums.ini

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
tarball=configure-VERSION.tar.gz
2-
sha1=d0347cf03ace1769091098cfcb0e8e4e5417f031
3-
md5=ff6158c08cb696e21b8621a657647a14
4-
cksum=1298150702
2+
sha1=e8cac32102815b6ff83bbb455c5d4cacc5b4ee8f
3+
md5=caa431f870eb76bf36b0bfd47a01ba5d
4+
cksum=2384868099
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5efa8df9cd13231bf53759c11b6910106992b7d4
1+
85a3dc5389b6670934938f705a9366b4ba8573b8

build/pkgs/curl/distros/debian.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
curl libcurl4-openssl-dev
1+
curl
2+
libcurl4-openssl-dev

build/pkgs/debian-bootstrap.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Packages needed for ./bootstrap
2-
gettext autoconf automake libtool pkg-config
2+
gettext
3+
autoconf
4+
automake
5+
libtool
6+
pkg-config

build/pkgs/debian.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ make
1616
m4
1717
perl
1818
# python3-minimal is not enough on debian buster, ubuntu bionic - it does not have urllib
19-
python3 # system python for bootstrapping the build
19+
# system python for bootstrapping the build
20+
python3
2021
tar
2122
bc
2223
gcc
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
--- a/src/configure 2020-04-24 03:54:52.000000000 -0700
2+
+++ b/src/configure 2020-09-17 14:47:48.000000000 -0700
3+
@@ -2046,6 +2046,7 @@
4+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5+
/* end confdefs.h. */
6+
$4
7+
+#include <stdlib.h>
8+
int
9+
main ()
10+
{
11+
@@ -2059,6 +2060,7 @@
12+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13+
/* end confdefs.h. */
14+
$4
15+
+#include <stdlib.h>
16+
int
17+
main ()
18+
{
19+
@@ -7421,6 +7423,7 @@
20+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21+
/* end confdefs.h. */
22+
#include <stdio.h>
23+
+#include <stdlib.h>
24+
int main() {
25+
const char *int_type;
26+
int bits;
27+
@@ -7709,6 +7712,7 @@
28+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29+
/* end confdefs.h. */
30+
#include <stdio.h>
31+
+#include <stdlib.h>
32+
int main() {
33+
const char *int_type;
34+
int bits;
35+
@@ -8004,6 +8008,7 @@
36+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37+
/* end confdefs.h. */
38+
#include <stdio.h>
39+
+#include <stdlib.h>
40+
int main() {
41+
FILE *f = fopen("conftestval","w");
42+
int c1, c2;

build/pkgs/ecm/distros/debian.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
gmp-ecm libecm-dev
1+
gmp-ecm
2+
libecm-dev

build/pkgs/ecm/package-version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.4.p1
1+
7.0.4.p2

0 commit comments

Comments
 (0)