Skip to content

Commit 3d0eb95

Browse files
committed
Go back to using apt for libflint in rtd
1 parent e802cc4 commit 3d0eb95

File tree

1 file changed

+20
-9
lines changed

1 file changed

+20
-9
lines changed

.readthedocs.yaml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,23 @@ build:
1010
os: ubuntu-24.04
1111
tools:
1212
python: "3.12"
13-
commands:
14-
- pip install -r requirements-dev.txt
15-
- bin/build_dependencies_unix.sh --use-gmp-github-mirror
16-
- spin build -- --pkg-config-path=.local/lib/pkgconfig -Dadd_flint_rpath=true
17-
- spin docs
18-
- mv doc/build/html $READTHEDOCS_OUTPUT/html
13+
14+
apt_packages:
15+
- libflint-dev
16+
jobs:
17+
pre_build:
18+
- pip install .
19+
20+
# Tried to use this to build latest version of FLINT but FLINT does not build
21+
# in rtd for some reason. FLINT's configure seems to fail in all sorts of ways
22+
# even though GMP and MPFR build fine.
23+
#
24+
# commands:
25+
# - pip install -r requirements-dev.txt
26+
# - bin/build_dependencies_unix.sh --use-gmp-github-mirror
27+
# - spin build -- --pkg-config-path=.local/lib/pkgconfig -Dadd_flint_rpath=true
28+
# - spin docs
29+
# - mv doc/build/html $READTHEDOCS_OUTPUT/html
1930

2031
# Build documentation in the "docs/" directory with Sphinx
2132
sphinx:
@@ -29,6 +40,6 @@ sphinx:
2940
# Optional but recommended, declare the Python requirements required
3041
# to build your documentation
3142
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
32-
# python:
33-
# install:
34-
# - requirements: requirements-dev.txt
43+
python:
44+
install:
45+
- requirements: requirements-dev.txt

0 commit comments

Comments
 (0)