Message368592
I think I have figured out the problem. I had a locally built and cached wheel of PyQt5-sip from before PEP573 went in. If that wheel is used for later commits I get the segfault, if I rebuilt the wheel from source it works.
I am not sure if this is an expected sharp edge (wheels are be expected to be good between commits prior to a release) or not.
-----
Below is a script that will build everything (sip, pyqt5, pyqt5-sip) from source and install them into a virtual env.
----
#! /usr/bin/bash
set -e
set -o xtrace
rm -r ~/.pybuild/py39 || true
pushd cpython
git clean -xfd
./configure --prefix=/home/tcaswell/.pybuild/py39
make -j 9
make install
popd
~/.pybuild/py39/bin/python3 -m venv --copies --clear ~/.virtualenvs/py39
source ~/.virtualenvs/py39/bin/activate
pip install --upgrade pip
echo $PATH
pushd PyQt5
pip install sip --no-binary sip
rm -rf PyQt5-5.14.2
tar -xzf PyQt5-5.14.2.tar.gz
pushd PyQt5-5.14.2
python configure.py --confirm-license
# patch the one palce that does not respect the venv settings
sed -i 's|$(INSTALL_ROOT)/usr|$(INSTALL_ROOT)/$(HOME)/.virtualenvs/py39/usr|g' Makefile
make -j 9
make install
popd
popd
pip install PyQt5-sip --no-binary PyQt5-sip
python -c "import PyQt5.QtCore; PyQt5.QtCore.Qt.Key_Control"
---- |
|
Date |
User |
Action |
Args |
2020-05-10 18:46:41 | tcaswell | set | recipients:
+ tcaswell, vstinner, petr.viktorin, corona10, shihai1991 |
2020-05-10 18:46:41 | tcaswell | set | messageid: <1589136401.27.0.0365726640143.issue40574@roundup.psfhosted.org> |
2020-05-10 18:46:41 | tcaswell | link | issue40574 messages |
2020-05-10 18:46:40 | tcaswell | create | |
|