@@ -14,39 +14,16 @@ set -o errexit
1414
1515# Install runtime and build dependencies
1616
17- # The commented commands below would attempt to build python-flint against a
18- # system installation of Flint and Arb in Ubuntu.
19- #
20- # Ubuntu 23.04 has Flint 2.9.0 and Arb 2.23.0, so this script might work there
21- # (for python-flint 0.4.x). That is untested though (23.04 not available in CI).
22- #
23- # With Ubuntu 22.04, this will build but then crashes when running the tests.
24- # most likely this is because the versions of flint and flint-arb are too old.
25- # At the time of writing in Ubuntu 22.04 there is Flint 2.8.4 and Arb 2.22. The
26- # main CI tests and wheels for python-flint 0.4.x are built with Flint 2.9.0
27- # and Arb 2.23.0.
28- #
29- # Link against libflint-arb instead of libarb on Ubuntu
30- # export PYTHON_FLINT_LIBFLINT_ARB=1
31- # sudo apt-get update
32- # sudo apt-get install libflint-dev libflint-arb-dev
33-
34-
35- # Build Flint and Arb manually
36- #
3717# First install their dependencies and build dependencies
3818sudo apt-get update
3919sudo apt-get install libgmp-dev libmpfr-dev xz-utils
4020
41- # Only these *EXACT* versions will work.
42- FLINTVER=2.9.0
43- ARBVER=2.23.0
21+ # Only Flint 3 or newer will work.
22+ FLINTVER=3.0.0-alpha1
4423
4524# This will default to installing in /usr/local. If you want to install in a
4625# non-standard location then configure flint with
4726# ./configure --disable-static --prefix=$PREFIX
48- # and arb with
49- # ./configure --disable-static --prefix=$PREFIX --with-flint=$PREFIX
5027# If $PREFIX is no in default search paths, then at build time set
5128# export C_INCLUDE_PATH=$PREFIX/include
5229# and at runtime set
@@ -55,15 +32,7 @@ ARBVER=2.23.0
5532curl -O -L https://www.flintlib.org/flint-$FLINTVER .tar.gz
5633tar xf flint-$FLINTVER .tar.gz
5734cd flint-$FLINTVER
58- ./configure --disable-static
59- make -j
60- sudo make install
61- cd ..
62-
63- curl -O -L https://github.com/fredrik-johansson/arb/archive/refs/tags/$ARBVER .tar.gz
64- mv $ARBVER .tar.gz arb-$ARBVER .tar.gz
65- tar xf arb-$ARBVER .tar.gz
66- cd arb-$ARBVER
35+ ./bootstrap.sh
6736 ./configure --disable-static
6837 make -j
6938 sudo make install
0 commit comments