diff options
author | Ben Pfaff <blp@nicira.com> | 2012-05-22 10:17:00 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-05-22 10:17:00 -0700 |
commit | 853d10830faccd9a8d37780d2f957aaba40105d5 (patch) | |
tree | 3030e1d5efa584ce451a1c61407f4d6b07f499fe /include | |
parent | 06f2a053603ef3f67dc3611bc7c1dd43a958cf46 (diff) | |
download | openvswitch-853d10830faccd9a8d37780d2f957aaba40105d5.tar.gz |
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 'include')
-rw-r--r-- | include/openflow/automake.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openflow/automake.mk b/include/openflow/automake.mk index 4b7bc07fd..38e8eefd1 100644 --- a/include/openflow/automake.mk +++ b/include/openflow/automake.mk @@ -10,7 +10,7 @@ if HAVE_PYTHON SUFFIXES += .h .hstamp .h.hstamp: - $(PYTHON) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $< + $(run_python) $(srcdir)/build-aux/check-structs -I$(srcdir)/include $< touch $@ HSTAMP_FILES = \ |