Browse Source

Use python_PYTHON instead. This will run py-compile at install time
to create the pyc and pyo optimized python files.

NOTE: run "autoreconf --install" to get the py-compile.

Later, I will handle this for the src/bin python scripts. (Ticket #78)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1238 e5f2f494-b856-4b98-b285-d166d9295462

Jeremy C. Reed 15 years ago
parent
commit
740b4f34e7

+ 2 - 5
src/lib/python/isc/Makefile.am

@@ -1,8 +1,5 @@
 SUBDIRS = auth cc Util config
 
-PY_MODULES=	__init__.py
+python_PYTHON = __init__.py
 
-install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(pyexecdir)/isc
-	@(for _foo_ in $(PY_MODULES) ; \
-		do $(INSTALL) -m 0644 $(top_srcdir)/src/lib/python/isc/$$_foo_ $(DESTDIR)$(pyexecdir)/isc/ ; done)
+pythondir = $(pyexecdir)/isc

+ 2 - 5
src/lib/python/isc/Util/Makefile.am

@@ -1,6 +1,3 @@
-PY_MODULES=	__init__.py hexdump.py
+python_PYTHON = __init__.py hexdump.py
 
-install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(pyexecdir)/isc/Util
-	@(for _foo_ in $(PY_MODULES) ; \
-		do $(INSTALL) -m 0644 $(top_srcdir)/src/lib/python/isc/Util/$$_foo_ $(DESTDIR)$(pyexecdir)/isc/Util/ ; done)
+pythondir = $(pyexecdir)/isc/Util

+ 2 - 5
src/lib/python/isc/auth/Makefile.am

@@ -1,6 +1,3 @@
-PY_MODULES=	__init__.py master.py sqlite3_ds.py
+python_PYTHON = __init__.py master.py sqlite3_ds.py
 
-install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(pyexecdir)/isc/auth
-	@(for _foo_ in $(PY_MODULES) ; \
-		do $(INSTALL) -m 0644 $(top_srcdir)/src/lib/python/isc/auth/$$_foo_ $(DESTDIR)$(pyexecdir)/isc/auth/; done)
+pythondir = $(pyexecdir)/isc/auth

+ 2 - 5
src/lib/python/isc/cc/Makefile.am

@@ -1,6 +1,3 @@
-PY_MODULES=	__init__.py data.py session.py message.py
+python_PYTHON =	__init__.py data.py session.py message.py
 
-install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(pyexecdir)/isc/cc
-	@(for _foo_ in $(PY_MODULES) ; \
-		do $(INSTALL) -m 0644 $(top_srcdir)/src/lib/python/isc/cc/$$_foo_ $(DESTDIR)$(pyexecdir)/isc/cc/ ; done)
+pythondir = $(pyexecdir)/isc/cc

+ 2 - 5
src/lib/python/isc/config/Makefile.am

@@ -1,6 +1,3 @@
-PY_MODULES=	__init__.py ccsession.py cfgmgr.py config_data.py module_spec.py
+python_PYTHON = __init__.py ccsession.py cfgmgr.py config_data.py module_spec.py
 
-install-data-local:
-	$(mkinstalldirs) $(DESTDIR)$(pyexecdir)/isc/config
-	@(for _foo_ in $(PY_MODULES) ; \
-		do $(INSTALL) -m 0644 $(top_srcdir)/src/lib/python/isc/config/$$_foo_ $(DESTDIR)$(pyexecdir)/isc/config/; done)
+pythondir = $(pyexecdir)/isc/config