aboutsummaryrefslogtreecommitdiff
path: root/lib/automake.mk
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2012-05-22 10:17:00 -0700
committerBen Pfaff <blp@nicira.com>2012-05-22 10:17:00 -0700
commit853d10830faccd9a8d37780d2f957aaba40105d5 (patch)
tree3030e1d5efa584ce451a1c61407f4d6b07f499fe /lib/automake.mk
parent06f2a053603ef3f67dc3611bc7c1dd43a958cf46 (diff)
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>
Diffstat (limited to 'lib/automake.mk')
-rw-r--r--lib/automake.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/automake.mk b/lib/automake.mk
index 62175268..52e112bc 100644
--- a/lib/automake.mk
+++ b/lib/automake.mk
@@ -298,7 +298,7 @@ lib/dirs.c: lib/dirs.c.in Makefile
$(srcdir)/lib/ofp-errors.inc: \
lib/ofp-errors.h $(srcdir)/build-aux/extract-ofp-errors
- $(PYTHON) $(srcdir)/build-aux/extract-ofp-errors \
+ $(run_python) $(srcdir)/build-aux/extract-ofp-errors \
$(srcdir)/lib/ofp-errors.h > $@.tmp && mv $@.tmp $@
$(srcdir)/lib/ofp-errors.c: $(srcdir)/lib/ofp-errors.inc
EXTRA_DIST += build-aux/extract-ofp-errors lib/ofp-errors.inc