summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordobey <dobey>2006-09-28 18:43:53 +0000
committerdobey <dobey>2006-09-28 18:43:53 +0000
commitba16216cf4819e6d5cd7ece03907a6436ea2bbb4 (patch)
tree637ccf3ab417aac1b34afa6b573b651eed589a66
parent89fcbcdf3f0d5d9075dcecaf5517730e1aa4a403 (diff)
2006-09-28 Rodney Dawes <dobey@novell.com>
* configure.ac: Remove AM_MAINTAINER_MODE call Add AC_PATH_PROG for python so that we can byte-compile the module * python/Makefile.am: Add bits to byte-compile the python module and install the byte-compiled cache file
-rw-r--r--ChangeLog8
-rw-r--r--configure.ac2
-rw-r--r--python/Makefile.am8
3 files changed, 17 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e41f225..e0ae59b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-09-28 Rodney Dawes <dobey@novell.com>
+
+ * configure.ac: Remove AM_MAINTAINER_MODE call
+ Add AC_PATH_PROG for python so that we can byte-compile the module
+
+ * python/Makefile.am: Add bits to byte-compile the python module and
+ install the byte-compiled cache file
+
2006-09-21 Rodney Dawes <dobey@novell.com>
* README: Update with some content about how the scripts work
diff --git a/configure.ac b/configure.ac
index a504b8e..a8825ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,8 +6,8 @@ AC_CONFIG_SRCDIR(HACKING)
AC_COPYRIGHT([Copyright 2006 Novell, Inc.])
AM_INIT_AUTOMAKE
-AM_MAINTAINER_MODE
+AC_PATH_PROG(PYTHON, python)
AC_MSG_CHECKING([python site path])
pythonsitedir="`./find-python-path.py`"
pythondir="\${libdir}/${pythonsitedir}"
diff --git a/python/Makefile.am b/python/Makefile.am
index 1a42a7f..ca6e8db 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -1,7 +1,15 @@
python_DATA = A11yTestUtils.py
+pyc_DATA = $(python_DATA:.py=.pyc)
+pycdir = $(pythondir)
+
+%.pyc: %.py
+ $(PYTHON) -c "import py_compile; py_compile.compile ('$<', '$@')"
EXTRA_DIST = $(python_DATA)
+CLEANFILES = \
+ $(pyc_DATA)
+
MAINTAINERCLEANFILES = \
Makefile.in