Skip to content

Building wxPython wheels for 3.10 3.11 for bookworm #2

@decodeais

Description

@decodeais

It was a hard work, so I hope it realy works.
When I used these Wheels thy worked. But I know there are sometimes side effects tat it is only an illusion.

This is my default for <3.10:
wxPython-4.2.0-cp39-cp39-linux_armv7l.whl

This was my first test for Raspbian Bookworm with Python3.11, it has still the Speedmeter bug:
wxPython-4.2.1-cp311-cp311-linux_aarch64.whl

This is unofficial pre release with bug fix:
wxPython-4.2.2a1-cp311-cp311-linux_aarch64.whl

Here are the wheels for normal Linux with Python >3.09
wxPython-4.2.2a1-cp310-cp310-linux_x86_64.whl
wxPython-4.2.2a1-cp311-cp311-linux_x86_64.whl

I hope somebody can use it and tell me if there is something wrong.

Here is the script i used to generate these wheels. It has to be tested on some fresh systems. Nevertheless its a good starting point for own generated wheels:

#!/bin/bash
# export PATH="$HOME/.local/bin:$PATH"

export DOXYGEN=/usr/bin/doxygen # for Raspian we must use the internal dxygen
# Update package lists
sudo apt-get update
sudo apt install doxygen
# Install required packagesexport PATH="$HOME/.local/bin:$PATH"
sudo apt install -y dpkg-dev build-essential python3-dev freeglut3-dev libgl1-mesa-dev \
libglu1-mesa-dev libgstreamer-plugins-base1.0-dev libgtk-3-dev libjpeg-dev libnotify-dev \
libpng-dev libsdl2-dev libsm-dev libtiff-dev libwebkit2gtk-4.0-dev libxtst-dev \
libgstreamer1.0-dev libjpeg-dev libtiff-dev libsm-dev

# Create directory for building
mkdir -p ~/WheelBuild311

# Change directory to the build directory
cd ~/WheelBuild311

# Create and activate virtual environment
python3.11 -m venv WheelBuilder311_py
source ~/WheelBuild311/WheelBuilder311_py/bin/activate

# Upgrade pip and install required Python packages
pip install -U pip six wheel setuptools sip requests

# Clone Phoenix repository
git clone https://github.com/wxWidgets/Phoenix.git --branch master
cd Phoenix
git submodule init
git submodule update
git submodule update --init --recursive

# Build Phoenix
python build.py dox etg --nodoc sip build bdist_wheel
#python build.py build bdist_wheel

May be it would be necessary to use a virtual machine for linux. A fresh Raspbian should not be a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions