mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
wxPython: rebuild for python3-3.13
This commit is contained in:
parent
b99e228fd7
commit
ee378dacef
2 changed files with 17 additions and 4 deletions
12
srcpkgs/wxPython/patches/wxsvg-cython.patch
Normal file
12
srcpkgs/wxPython/patches/wxsvg-cython.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
The only thing preventing use of Cython 3 is an unused, invalid import.
|
||||
|
||||
--- a/wx/svg/_nanosvg.pyx
|
||||
+++ b/wx/svg/_nanosvg.pyx
|
||||
@@ -42,7 +42,6 @@
|
||||
|
||||
import sys
|
||||
|
||||
-cimport cython.object
|
||||
from cpython.buffer cimport (
|
||||
Py_buffer, PyObject_CheckBuffer, PyObject_GetBuffer, PyBUF_SIMPLE,
|
||||
PyBuffer_Release)
|
|
@ -1,11 +1,11 @@
|
|||
# Template file for 'wxPython'
|
||||
pkgname=wxPython
|
||||
version=4.2.1
|
||||
revision=5
|
||||
revision=6
|
||||
build_style=python3-module
|
||||
make_build_args="--skip-build"
|
||||
make_install_args="--skip-build"
|
||||
hostmakedepends="pkg-config python3-setuptools python3-pathlib2 python3-Cython0.29"
|
||||
hostmakedepends="pkg-config python3-setuptools python3-Cython"
|
||||
makedepends="python3-devel wxWidgets-gtk3-devel SDL2-devel
|
||||
gst-plugins-base1-devel"
|
||||
depends="python3-six"
|
||||
|
@ -32,6 +32,7 @@ post_patch() {
|
|||
|
||||
pre_build() {
|
||||
chmod -R go+rX $wrksrc
|
||||
|
||||
PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}$wrksrc"
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
PYPREFIX="$XBPS_CROSS_BASE"
|
||||
|
@ -39,9 +40,9 @@ pre_build() {
|
|||
CC="${XBPS_CROSS_TRIPLET}-gcc -pthread $CFLAGS $LDFLAGS"
|
||||
LDSHARED="${CC} -shared $LDFLAGS"
|
||||
env CC="$CC" LDSHARED="$LDSHARED" \
|
||||
PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" \
|
||||
PYTHON_CONFIG="${XBPS_CROSS_BASE}/usr/bin/python3-config" \
|
||||
LDFLAGS="$LDFLAGS" python3 build.py build_py --use_syswx
|
||||
PYPREFIX="$PYPREFIX" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
|
||||
python3 build.py build_py --use_syswx
|
||||
else
|
||||
python3 build.py build_py --use_syswx
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue