Package: dh-python
Version: 2.20151103
Tags: patch
dh_python{2,3} only passes -X to pycompile for private dirs, meaning
that it doesn't exclude files from byte-compilation under dist-packages.This is needed for upstreams that put .py files under dist-packages that are not actually valid Python. For example, templates such as: https://github.com/django/django/blob/master/django/conf/app_template/apps.py#L4 Workarounds, such as moving the files elsewhere would certainly *work* but require patches to the upstream code to look in a different location, etc. Patch attached. Regards, -- ,''`. : :' : Chris Lamb `. `'` [email protected] / chris-lamb.co.uk `-
dh-python.diff.txt
Description: application/plain

