> Why not just add an additional test for an executable bit on a \*.py file 
> instead of attempting detection of within tree compilation?

What does this has to do with executable bits? You need to bytecompile files 
that are imported, not the files that are executed. The problem with current 
approach is this assumption:

 * if it is called `*.py`, it has to be bytecompiled with `/usr/bin/python`

That assumption is just wrong, as we explain in the Fedora change.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/434#issuecomment-383922376
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to