mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Use PYTHONDONTWRITEBYTECODE=yes for invoking Python for build or test.
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>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
run_python = PYTHONPATH=$(top_srcdir)/python:$$PYTHONPATH $(PYTHON)
|
||||
|
||||
ovstest_pyfiles = \
|
||||
python/ovstest/__init__.py \
|
||||
python/ovstest/args.py \
|
||||
|
Reference in New Issue
Block a user