Skip to content

Commit 572ac3e

Browse files
Merge pull request #223 from oscarbenjamin/pr_flintver_docs
docs: use latest Flint when building docs
2 parents c1bcf87 + f05baa6 commit 572ac3e

File tree

5 files changed

+34
-17
lines changed

5 files changed

+34
-17
lines changed

.github/workflows/buildwheel.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,7 @@ jobs:
6767
with:
6868
python-version: '3.12'
6969

70-
- run: sudo apt-get update
71-
- run: sudo apt-get install libgmp-dev libmpfr-dev xz-utils ninja-build
72-
- run: curl -O -L https://www.flintlib.org/flint-3.1.0.tar.gz
73-
- run: tar -xzf flint-3.1.0.tar.gz
74-
- run: cd flint-3.1.0 && ./configure --disable-static && make -j4 && sudo make install
70+
- run: bin/install_latest_flint_ubuntu.sh
7571
- run: pip install build
7672
- run: python -m build --sdist
7773

@@ -129,9 +125,7 @@ jobs:
129125
- uses: actions/setup-python@v5
130126
with:
131127
python-version: '3.12'
132-
- run: sudo apt-get update
133-
- run: sudo apt-get install libflint-dev
134-
128+
- run: bin/install_latest_flint_ubuntu.sh
135129
- run: pip install --upgrade pip
136130
- run: pip install -r requirements-dev.txt
137131
- run: spin run -- pytest --doctest-glob='*.rst' doc/source

.readthedocs.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ build:
1010
os: ubuntu-24.04
1111
tools:
1212
python: "3.12"
13-
# You can also specify other tool versions:
14-
# nodejs: "19"
15-
# rust: "1.64"
16-
# golang: "1.19"
1713
apt_packages:
18-
- libflint-dev
19-
jobs:
20-
pre_build:
21-
- pip install .
14+
- libgmp-dev
15+
- libmpfr-dev
16+
- xz-utils
17+
- ninja-build
18+
commands:
19+
- bin/install_latest_flint_ubuntu.sh
20+
- spin docs
21+
- mv doc/build/html $READTHEDOCS_OUTPUT/html
2222

2323
# Build documentation in the "docs/" directory with Sphinx
2424
sphinx:

bin/install_latest_flint_ubuntu.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source bin/build_variables.sh
6+
7+
sudo apt-get update
8+
sudo apt-get install libgmp-dev libmpfr-dev xz-utils ninja-build
9+
10+
curl -O -L https://github.com/flintlib/flint/releases/download/v$FLINTVER/flint-$FLINTVER.tar.gz
11+
tar -xzf flint-$FLINTVER.tar.gz
12+
cd flint-$FLINTVER && ./configure --disable-static && make -j$(expr $(nproc) + 1) && sudo make install
13+
14+
ls -l /usr/local/lib
15+
sudo ldconfig /usr/local/lib

bin/rtd_before_all_linux.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
apt-get install xz-utils
4+
5+
bin/build_dependencies_unix.sh\
6+
--gmp gmp\
7+
--host x86_64-pc-linux-gnu\
8+
--use-gmp-github-mirror

doc/source/nmod_mpoly.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
**nmod_mpoly** -- multivariate polynomials over the integers mod n (word-size n)
2-
===============================================================================
2+
================================================================================
33

44
.. autoclass :: flint.nmod_mpoly_ctx
55
:members:

0 commit comments

Comments
 (0)