Skip to content

Commit b7f04ea

Browse files
committed
build: use Python 3.10.14
Tracks the default used by Bitcoin Core since v29.0: bitcoin/bitcoin#30527 Use 3.10.11 for Windows build.
1 parent 5f533aa commit b7f04ea

File tree

8 files changed

+94
-20
lines changed

8 files changed

+94
-20
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.9
1+
3.10.14

ci/py39.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cache break (modify this line to break cirrus' dockerfile build cache) 1
22

3-
FROM python:3.9
3+
FROM python:3.10
44

55
ENV DEBIAN_FRONTEND=noninteractive
66
RUN apt-get update

contrib/build.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ COPY contrib/reproducible-python.diff /opt/reproducible-python.diff
3838
ENV PYTHON_CONFIGURE_OPTS="--enable-shared"
3939
ENV BUILD_DATE="Jan 1 2019"
4040
ENV BUILD_TIME="00:00:00"
41-
RUN eval "$(pyenv init --path)" && eval "$(pyenv virtualenv-init -)" && cat /opt/reproducible-python.diff | pyenv install -kp 3.9.19
41+
RUN eval "$(pyenv init --path)" && eval "$(pyenv virtualenv-init -)" && cat /opt/reproducible-python.diff | pyenv install -kp 3.10.14
4242

4343
ENV LC_ALL=C.UTF-8
4444
ENV LANG=C.UTF-8

contrib/build_bin.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ else
2121
fi
2222

2323
# We also need to change the timestamps of all of the base library files
24-
lib_dir=$(pyenv prefix)/lib/python3.9
24+
lib_dir=$(pyenv prefix)/lib/python3.10
2525
TZ=UTC find ${lib_dir} -name '*.py' -type f -execdir touch -t "201901010000.00" '{}' \;
2626

2727
# Make the standalone binary

contrib/build_wine.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33

44
set -ex
55

6-
PYTHON_VERSION=3.9.13
6+
# There's no core.msi for 3.10.14 - 3.10.18
7+
PYTHON_VERSION=3.10.11
78

89
PYTHON_FOLDER="python3"
910
PYHOME="c:/$PYTHON_FOLDER"

docs/development/release-process.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Build everything::
2626

2727
docker run -it --name hwi-builder -v $PWD:/opt/hwi --rm --workdir /opt/hwi hwi-builder /bin/bash -c "contrib/build_bin.sh && contrib/build_dist.sh"
2828
docker run -it --name hwi-wine-builder -v $PWD:/opt/hwi --rm --workdir /opt/hwi hwi-wine-builder /bin/bash -c "contrib/build_wine.sh"
29-
docker run --platform linux/arm64 -it --rm --name hwi-builder-arm64 -v $PWD:/opt/hwi --workdir /opt/hwi hwi-builder-arm64 /bin/bash -c "contrib/build_bin.sh --without-gui && contrib/build_dist.sh --without-gui"
29+
docker run --platform linux/arm64 -it --rm --name hwi-builder-arm64 -v $PWD:/opt/hwi --workdir /opt/hwi hwi-builder-arm64 /bin/bash -c "contrib/build_bin.sh --without-gui && contrib/build_dist.sh --without-gui"
3030

3131
Building macOS binary
3232
=====================
@@ -35,14 +35,14 @@ Note that the macOS build is non-deterministic.
3535

3636
First install `pyenv <https://github.com/pyenv/pyenv>`_ using whichever method you prefer.
3737

38-
Then a deterministic build of Python 3.9.19 needs to be installed. This can be done with the patch in ``contrib/reproducible-python.diff``. First ``cd`` into HWI's source tree. Then use::
38+
Then a deterministic build of Python 3.10.14 needs to be installed. This can be done with the patch in ``contrib/reproducible-python.diff``. First ``cd`` into HWI's source tree. Then use::
3939

40-
cat contrib/reproducible-python.diff | PYTHON_CONFIGURE_OPTS="--enable-framework" BUILD_DATE="Jan 1 2019" BUILD_TIME="00:00:00" pyenv install -kp 3.9.19
40+
cat contrib/reproducible-python.diff | PYTHON_CONFIGURE_OPTS="--enable-framework" BUILD_DATE="Jan 1 2019" BUILD_TIME="00:00:00" pyenv install -kp 3.10.14
4141

42-
Make sure that python 3.9.19 is active::
42+
Make sure that python 3.10.14 is active::
4343

4444
$ python --version
45-
Python 3.9.19
45+
Python 3.10.14
4646

4747
Now install `Poetry <https://github.com/sdispater/poetry>`_ with ``pip install poetry``
4848

poetry.lock

Lines changed: 82 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protobuf = "^4.23.3"
3434
[tool.poetry.extras]
3535
qt = ["pyside2"]
3636

37-
[tool.poetry.dev-dependencies]
37+
[tool.poetry.group.dev.dependencies]
3838
pyinstaller = "^6.3"
3939
autopep8 = "~1"
4040
flake8 = ">=3"

0 commit comments

Comments
 (0)