wxPython build error

Hello! Some time ago, an error occurred while building the wxPython library from source. Compilation is successful, and an error appears during the installation process:

copying wx/dataview.pyi -> build/lib.linux-x86_64-3.6/wx
copying wx/glcanvas.pyi -> build/lib.linux-x86_64-3.6/wx
copying wx/grid.pyi -> build/lib.linux-x86_64-3.6/wx
copying wx/html.pyi -> build/lib.linux-x86_64-3.6/wx
copying wx/html2.pyi -> build/lib.linux-x86_64-3.6/wx
copying symlink wx/libwx_baseu-3.0.so -> build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so
error: [Errno 2] No such file or directory: 'build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so'

ERROR: Command errored out with exit status 1: /root/parts/wxpython/install/usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-req-build-722ljlx9/setup.py’"’"’; file=’"’"’/tmp/pip-req-build-722ljlx9/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-sx7zaiyq/install-record.txt --single-version-externally-managed --user --prefix= --no-compile --install-headers /root/parts/wxpython/install/include/python3.6m/wxPython Check the logs for full command output.
Failed to run ‘/root/parts/wxpython/install/usr/bin/python3 -m pip install --user --no-compile --find-links /root/parts/wxpython/python-packages .’: Exited with code 1.

Until recently, everything worked fine. After what update everything broke, I did not pay attention.

Now using snapcraft 3.11 (Arch Linux). Core 18. Example part to build wxPython:

    plugin: python
    python-version: python3
    source: https://files.pythonhosted.org/packages/b9/8b/31267dd6d026a082faed35ec8d97522c0236f2e083bf15aff64d982215e1/wxPython-4.0.7.post2.tar.gz
        - python3-dev
        - libhunspell-dev
        - libwebkit2gtk-4.0-dev
        - libssl-dev
        - build-essential
        - libjpeg-dev
        - libtiff-dev
        - libsdl2-dev
        - libgstreamer-plugins-base1.0-dev
        - libnotify-dev
        - freeglut3-dev
        - libsm-dev
        - libgtk-3-dev
        - python3-pip
        - python3
        - libglu1-mesa
        - libsdl2-2.0-0
        - libsndio6.1
        - libxss1
        - freeglut3
        - ibus-gtk3
        - zlib1g
        - libsm6
        - libpulse0
        - libhunspell-1.6-0
        - libwebkit2gtk-4.0-37
        - libsdl-gfx1.2-5
        - libgstreamer1.0-0
        - libslang2

There is a suspicion that this has something to do with using venv in the python plugin.

I don’t see vevn being used in your part in any capacity. Virtual Environments in the Python plugin is for when core20 is set as the base (https://snapcraft.io/docs/python-plugin)

May be. I just looked at the source code for the Python plugin and saw the use of venv there.

I noticed in debug mode that wxPython build was successful using /usr/bin/python3, but an error occurred during build using /root/parts/wxpython/install/usr/bin/python3.