Drop Python 2 support – part 2 #8

Merged
SlavekB merged 3 commits from feat/drop-python2-part2 into master 1 year ago
SlavekB commented 1 year ago
Owner

Here are a few parts:

  1. tdedistutils.py is installed within a binary package and therefore from src import qtuicompiler is undesirable.
  2. When using tdedistutils.py, a Makefile is generated, so there we also need to use sys.abiflags to link the Python 3 library.
  3. When using tdedistutils.py, C++ files are generated where PyString_FromString was used, which is intended for Python 2, while for Python 3 we need to use PyBytes_FromString.
Here are a few parts: 1. `tdedistutils.py` is installed within a binary package and therefore `from src import qtuicompiler` is undesirable. 2. When using `tdedistutils.py`, a Makefile is generated, so there we also need to use `sys.abiflags` to link the Python 3 library. 3. When using `tdedistutils.py`, C++ files are generated where `PyString_FromString` was used, which is intended for Python 2, while for Python 3 we need to use `PyBytes_FromString`.
SlavekB added 3 commits 1 year ago
2561016208
Fix import of qtuicompiler in tdedistutils.py.
c329b93083
Drop python2 support in code generated from tdedistutils.py.
SlavekB added this to the R14.1.0 release milestone 1 year ago
SlavekB requested review from MicheleC 1 year ago
SlavekB added a new dependency 1 year ago
SlavekB force-pushed feat/drop-python2-part2 from c329b93083 to cc5852b1e4 1 year ago
MicheleC approved these changes 1 year ago
MicheleC left a comment
Owner

Looks good

Looks good
SlavekB merged commit cc5852b1e4 into master 1 year ago
SlavekB deleted branch feat/drop-python2-part2 1 year ago

Reviewers

MicheleC approved these changes 1 year ago
The pull request has been merged as cc5852b1e4.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Blocks
Reference: TDE/pytdeextensions#8
Loading…
There is no content yet.