This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/106707/

Review request for Build System.
By Luca Beltrame.

Description

Support Python 3.2's new method of handling byte compiled files. Python 3.2 changed the compile mechanism by creating a __pycache__ directory. This obviously breaks a lot of stuff that assumed that pyc files were stored in the same directory as the py files. This change adds a check, and adjusts files only in case Python 3.2 is found. Notice that currently I have way of testing if the suffix (*cpython) is the same on all supported OSes.

Testing

No more errors are produced when building PyKDE4 with Python 3.

Diffs

  • cmake/modules/PythonMacros.cmake (774c6b2d8eb5f9bafaf7e73da1108bd347a73667)

View Diff