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.
@@ -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 $@
@@ -28,3 +28,8 @@ install-data-local:
$(mkinstalldirs) $(DESTDIR)/@localstatedir@/@PACKAGE@
# TODO: permissions handled later
@@ -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
@@ -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__
@@ -51,3 +51,8 @@ install-data-local:
endif
@@ -20,3 +20,8 @@ endif
b10-msgq: msgq.py
$(SED) "s|@@PYTHONPATH@@|@pyexecdir@|" msgq.py >$@
@@ -34,3 +34,8 @@ b10-stats: stats.py
b10-stats-httpd: stats_httpd.py
$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" stats_httpd.py >$@
@@ -17,3 +17,8 @@ endif
B10_FROM_SOURCE=$(abs_top_srcdir) \
$(PYCOVERAGE_RUN) $(abs_srcdir)/$$pytest || exit ; \
@@ -1,2 +1,6 @@
EXTRA_DIST = __init__.py server.py
CLEANFILES = __init__.pyc server.pyc
@@ -1,3 +1,8 @@
SUBDIRS = cc config util
EXTRA_DIST = __init__.py
CLEANFILES = __init__.pyc
@@ -1,2 +1,7 @@
EXTRA_DIST = __init__.py session.py
CLEANFILES = __init__.pyc session.pyc
EXTRA_DIST = __init__.py ccsession.py
CLEANFILES = __init__.pyc ccsession.pyc
EXTRA_DIST = __init__.py process.py
CLEANFILES = __init__.pyc process.pyc
@@ -25,3 +25,8 @@ b10-xfrin: xfrin.py
$(SED) -e "s|@@PYTHONPATH@@|@pyexecdir@|" \
-e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrin.py >$@
@@ -28,3 +28,8 @@ b10-xfrout: xfrout.py
-e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" xfrout.py >$@
@@ -26,3 +26,8 @@ b10-zonemgr: zonemgr.py
-e "s|@@LOCALSTATEDIR@@|$(localstatedir)|" zonemgr.py >$@
@@ -41,3 +41,8 @@ endif
$(LIBRARY_PATH_PLACEHOLDER) \
@@ -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
@@ -3,3 +3,8 @@ SUBDIRS = datasrc cc config log net notify util testutils
python_PYTHON = __init__.py
pythondir = $(pyexecdir)/isc
@@ -3,3 +3,8 @@ SUBDIRS = . tests
python_PYTHON = __init__.py data.py session.py message.py
pythondir = $(pyexecdir)/isc/cc
python_PYTHON = __init__.py ccsession.py cfgmgr.py config_data.py module_spec.py
pythondir = $(pyexecdir)/isc/config
@@ -18,3 +18,8 @@ endif
CONFIG_WR_TESTDATA_PATH=$(abs_top_builddir)/src/lib/config/tests/testdata \
python_PYTHON = __init__.py master.py sqlite3_ds.py
pythondir = $(pyexecdir)/isc/datasrc
@@ -6,3 +6,8 @@ pythondir = $(pyexecdir)/isc/log
$(SHELL) tests/log_test
@@ -3,3 +3,8 @@ SUBDIRS = tests
python_PYTHON = __init__.py addr.py parse.py
pythondir = $(pyexecdir)/isc/net
python_PYTHON = __init__.py notify_out.py
pythondir = $(pyexecdir)/isc/notify
@@ -1 +1,6 @@
EXTRA_DIST = __init__.py parse_args.py tsigctx_mock.py
python_PYTHON = __init__.py process.py socketserver_mixin.py file.py
pythondir = $(pyexecdir)/isc/util