From: Michael Tremer Date: Mon, 14 Jul 2008 12:40:29 +0000 (+0000) Subject: Added a function to automatically byte-compile the python files after installation. X-Git-Tag: v3.0-alpha1~868 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e25b252d17ca95da5b46e322c33c33558dbbfcbc;p=ipfire-3.x.git Added a function to automatically byte-compile the python files after installation. --- diff --git a/lfs/Config b/lfs/Config index ee0ed84a4..3bd5a42ff 100644 --- a/lfs/Config +++ b/lfs/Config @@ -186,6 +186,16 @@ define LOAD python $(DIR_TOOLS)/downloader $(URL_IPFIRE)/$@ endef +ifeq "$(STAGE)" "installer" +define PYTHON_COMPILE + find $(INSTALLER_DIR)/usr/lib/python*/ -name *.py | xargs /usr/local/bin/py-compile +endef +else +define PYTHON_COMPILE + find /usr/lib/python*/ -name *.py | xargs /usr/local/bin/py-compile +endef +endif + define PAK # Bringing the files to their right place. @rm -rf /install/packages/package diff --git a/src/pomona/py-compile b/src/scripts/py-compile similarity index 100% rename from src/pomona/py-compile rename to src/scripts/py-compile