Commit dd3c0d1d authored by Jelte Jansen's avatar Jelte Jansen

[trac710] remove __pycache__ directories

introduced in python3.2, this is where .pyc files are now stored, which of course makes distcheck fail. Added cleandir targets to all directories containing python code.
parent e580e10d
......@@ -27,3 +27,8 @@ bind10: bind10.py
pytest:
$(SHELL) tests/bind10_test
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -25,3 +25,8 @@ bindctl: bindctl_main.py
-e "s|@@SYSCONFDIR@@|@sysconfdir@|" \
-e "s|@@LIBEXECDIR@@|$(pkglibexecdir)|" bindctl_main.py >$@
chmod a+x $@
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -28,3 +28,8 @@ install-data-local:
$(mkinstalldirs) $(DESTDIR)/@localstatedir@/@PACKAGE@
# TODO: permissions handled later
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -4,3 +4,8 @@ EXTRA_DIST += logging.spec b10logging.py
config_plugindir = @prefix@/share/@PACKAGE@/config_plugins
config_plugin_DATA = tsig_keys.py tsig_keys.spec
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -16,3 +16,8 @@ endif
env PYTHONPATH=$(abs_top_srcdir)/src/lib/python:$(abs_top_builddir)/src/lib/python:$(abs_top_builddir)/src/bin/cfgmgr \
$(PYCOVERAGE_RUN) $(abs_builddir)/$$pytest || exit ; \
done
CLEANDIRS = testdata/plugins/__pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -51,3 +51,8 @@ install-data-local:
done
endif
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -20,3 +20,8 @@ endif
b10-msgq: msgq.py
$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" msgq.py >$@
chmod a+x $@
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -34,3 +34,8 @@ b10-stats: stats.py
b10-stats-httpd: stats_httpd.py
$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" stats_httpd.py >$@
chmod a+x $@
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -17,3 +17,8 @@ endif
B10_FROM_SOURCE=$(abs_top_srcdir) \
$(PYCOVERAGE_RUN) $(abs_srcdir)/$$pytest || exit ; \
done
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
EXTRA_DIST = __init__.py server.py
CLEANFILES = __init__.pyc server.pyc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
SUBDIRS = cc config util
EXTRA_DIST = __init__.py
CLEANFILES = __init__.pyc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
EXTRA_DIST = __init__.py session.py
CLEANFILES = __init__.pyc session.pyc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
EXTRA_DIST = __init__.py ccsession.py
CLEANFILES = __init__.pyc ccsession.pyc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
EXTRA_DIST = __init__.py process.py
CLEANFILES = __init__.pyc process.pyc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -25,3 +25,8 @@ b10-xfrin: xfrin.py
$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
-e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrin.py >$@
chmod a+x $@
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -28,3 +28,8 @@ b10-xfrout: xfrout.py
$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
-e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrout.py >$@
chmod a+x $@
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -26,3 +26,8 @@ b10-zonemgr: zonemgr.py
$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
-e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" zonemgr.py >$@
chmod a+x $@
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -41,3 +41,8 @@ endif
$(LIBRARY_PATH_PLACEHOLDER) \
$(PYCOVERAGE_RUN) $(abs_srcdir)/$$pytest || exit ; \
done
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -11,3 +11,7 @@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in bind10_config.py.in
EXTRA_DIST = bind10_config.py.in
CLEANFILES = bind10_config.pyc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -3,3 +3,8 @@ SUBDIRS = datasrc cc config log net notify util testutils
python_PYTHON = __init__.py
pythondir = $(pyexecdir)/isc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -3,3 +3,8 @@ SUBDIRS = . tests
python_PYTHON = __init__.py data.py session.py message.py
pythondir = $(pyexecdir)/isc/cc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -3,3 +3,8 @@ SUBDIRS = . tests
python_PYTHON = __init__.py ccsession.py cfgmgr.py config_data.py module_spec.py
pythondir = $(pyexecdir)/isc/config
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -18,3 +18,8 @@ endif
CONFIG_WR_TESTDATA_PATH=$(abs_top_builddir)/src/lib/config/tests/testdata \
$(PYCOVERAGE_RUN) $(abs_srcdir)/$$pytest || exit ; \
done
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -3,3 +3,8 @@ SUBDIRS = . tests
python_PYTHON = __init__.py master.py sqlite3_ds.py
pythondir = $(pyexecdir)/isc/datasrc
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -6,3 +6,8 @@ pythondir = $(pyexecdir)/isc/log
pytest:
$(SHELL) tests/log_test
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -3,3 +3,8 @@ SUBDIRS = tests
python_PYTHON = __init__.py addr.py parse.py
pythondir = $(pyexecdir)/isc/net
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -3,3 +3,8 @@ SUBDIRS = . tests
python_PYTHON = __init__.py notify_out.py
pythondir = $(pyexecdir)/isc/notify
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
EXTRA_DIST = __init__.py parse_args.py tsigctx_mock.py
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
......@@ -3,3 +3,8 @@ SUBDIRS = . tests
python_PYTHON = __init__.py process.py socketserver_mixin.py file.py
pythondir = $(pyexecdir)/isc/util
CLEANDIRS = __pycache__
clean-local:
rm -rf $(CLEANDIRS)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment