Use PYTHONDONTWRITEBYTECODE=yes for invoking Python for build or test.
authorBen Pfaff <blp@nicira.com>
Tue, 22 May 2012 17:17:00 +0000 (10:17 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 22 May 2012 17:17:00 +0000 (10:17 -0700)
An upcoming commit will break the ovs.vlog module into an ovs.vlog package
with submodules.  This commit makes switching between trees with the old
structure and those with the new structure much easier.

This commit works by setting PYTHONDONTWRITEBYTECODE=yes in Python
invocations from the build system and testing.  This keeps Python 2.6+ from
creating .pyc and .pyo files.  Creating .py[co] works OK for any given
version of Open vSwitch, but it causes trouble if you switch from a version
with foo/__init__.py into an (older) version with plain foo.py, since
foo/__init__.pyc will cause Python to ignore foo.py.

Signed-off-by: Ben Pfaff <blp@nicira.com>

No differences found