File tree 4 files changed +37
-12
lines changed
4 files changed +37
-12
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ jobs:
59
59
echo "changed=true" >> $GITHUB_OUTPUT
60
60
fi
61
61
62
- - name : Build wheels cp312
62
+ - name : Build wheels cp313
63
63
uses :
home-assistant/[email protected]
64
64
if : github.event_name == 'release' || steps.requirements.outputs.changed == 'true'
65
65
with :
66
66
tag : musllinux_1_2
67
- abi : cp312
67
+ abi : cp313
68
68
arch : ${{ matrix.arch }}
69
69
wheels-key : ${{ secrets.WHEELS_KEY }}
70
70
apk : " mariadb-dev;postgresql-dev;libffi-dev"
Original file line number Diff line number Diff line change 63
63
64
64
# libcec
65
65
COPY patches/libcec-fix-null-return.patch /usr/src/
66
+ COPY patches/libcec-python313.patch /usr/src/
66
67
RUN apk add --no-cache \
67
68
eudev-libs \
68
69
p8-platform \
@@ -76,20 +77,22 @@ RUN apk add --no-cache \
76
77
&& git clone --depth 1 -b "libcec-${LIBCEC_VERSION}" https://github.com/Pulse-Eight/libcec \
77
78
&& cd libcec \
78
79
&& git apply ../libcec-fix-null-return.patch \
80
+ && git apply ../libcec-python313.patch \
79
81
&& mkdir build \
80
82
&& cd build \
81
83
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr/local \
82
- -DPYTHON_LIBRARY="/usr/local/lib/libpython3.12 .so" \
83
- -DPYTHON_INCLUDE_DIR="/usr/local/include/python3.12 " \
84
+ -DPYTHON_LIBRARY="/usr/local/lib/libpython3.13 .so" \
85
+ -DPYTHON_INCLUDE_DIR="/usr/local/include/python3.13 " \
84
86
-DHAVE_LINUX_API=1 \
85
87
.. \
86
88
&& make -j"$(nproc)" \
87
89
&& make install \
88
- && echo "cec" > "/usr/local/lib/python3.12 /site-packages/cec.pth" \
90
+ && echo "cec" > "/usr/local/lib/python3.13 /site-packages/cec.pth" \
89
91
&& apk del .build-dependencies \
90
92
&& rm -rf \
91
93
/usr/src/libcec \
92
- /usr/src/libcec-fix-null-return.patch
94
+ /usr/src/libcec-fix-null-return.patch \
95
+ /usr/src/libcec-python313.patch
93
96
94
97
# PicoTTS - it has no specific version - commit should be taken from build.json
95
98
RUN apk add --no-cache \
@@ -99,7 +102,7 @@ RUN apk add --no-cache \
99
102
autoconf \
100
103
libtool \
101
104
popt-dev \
102
- build-base \
105
+ build-base \
103
106
&& git clone https://github.com/naggety/picotts.git pico \
104
107
&& cd pico/pico \
105
108
&& git reset --hard "${PICOTTS_HASH}" \
Original file line number Diff line number Diff line change 1
1
image : ghcr.io/home-assistant/{arch}-homeassistant-base
2
2
build_from :
3
- aarch64 : ghcr.io/home-assistant/aarch64-base-python:3.12 -alpine3.20
4
- armhf : ghcr.io/home-assistant/armhf-base-python:3.12 -alpine3.20
5
- armv7 : ghcr.io/home-assistant/armv7-base-python:3.12 -alpine3.20
6
- amd64 : ghcr.io/home-assistant/amd64-base-python:3.12 -alpine3.20
7
- i386 : ghcr.io/home-assistant/i386-base-python:3.12 -alpine3.20
3
+ aarch64 : ghcr.io/home-assistant/aarch64-base-python:3.13 -alpine3.20
4
+ armhf : ghcr.io/home-assistant/armhf-base-python:3.13 -alpine3.20
5
+ armv7 : ghcr.io/home-assistant/armv7-base-python:3.13 -alpine3.20
6
+ amd64 : ghcr.io/home-assistant/amd64-base-python:3.13 -alpine3.20
7
+ i386 : ghcr.io/home-assistant/i386-base-python:3.13 -alpine3.20
8
8
codenotary :
9
9
10
10
Original file line number Diff line number Diff line change
1
+ --- a/src/libcec/SwigHelper.h
2
+ +++ b/src/libcec/SwigHelper.h
3
+ @@ -119,7 +119,7 @@ namespace CEC
4
+ if (!!m_callbacks[callback])
5
+ {
6
+ /** call the callback */
7
+ - result = PyEval_CallObject(m_callbacks[callback], arglist);
8
+ + result = PyObject_CallObject(m_callbacks[callback], arglist);
9
+
10
+ /** unref the argument and result */
11
+ if (!!arglist)
12
+ --- a/src/libcec/libcec.i
13
+ +++ b/src/libcec/libcec.i
14
+ @@ -141,7 +141,7 @@ namespace std {
15
+ if (!!lib)
16
+ {
17
+ lib->InitVideoStandalone();
18
+ - PyEval_InitThreads();
19
+ + // PyEval_InitThreads();
20
+ }
21
+ return lib;
22
+ }
You can’t perform that action at this time.
0 commit comments