py3.10-prep: Fix parser.py for changed typing module
The typing module has subtle changes that are not even
documented: Typing types now have a __name__ attribute.
That confused the parser of the pyi generator because
suddenly stingizing
Callable[..., Optional[str]]
resulted in
Callable[..., Optional]
because of special rules that return the generic name
of a typing type, which was very unexpected. Finding this bug
took a lot of debugging of the recursive `_resolve_type`
function.
(cherry picked from commit
2530cb3f165ac02b8f7132e3f5ab4f7f6896dbd9)
Gbp-Pq: Name py3.10-prep-Fix-parser.py-for-changed-typing-module.patch
py3.10-prep: reset the type cache after feature switching
When using feature switching in Python 3.10, there were
funny effects where switched and un-switched versions appeared
to co-exist.
It turned out that we were hit by function caching that
is now implemented for the LOAD_ATTR opcode.
It was not known that caching would happen at all for
PySide classes because we don't use Py_TPFLAGS_VALID_VERSION_TAG.
But actually, this flag is used internally by Python to do some
optimizations, and we just have to notify the interpreter of
type changes by PyType_Modified().
(cherry picked from commit
3a2b7c6f88bba04d8b7ddb571163d23c15c36a4f)
Gbp-Pq: Name py3.10-prep-reset-the-type-cache-after-feature-switching.patch
Pass --reuse-build only to commands that use DistUtilsCommandMixin
This is a concatenation of two upstream commits:
- https://code.qt.io/cgit/pyside/pyside-setup.git/commit/?id=
ed0571df854a232e
- https://code.qt.io/cgit/pyside/pyside-setup.git/commit/?id=
3f00c2adad2e38b0
Gbp-Pq: Name fix-reuse-build.patch
Update import of PyQt5 private sip module and remove Python 2/PyQt4 setapi calls
Last-Updated: 2020-12-20
Gbp-Pq: Name update-sip-import.patch