From 3b8b23873a175edc3065f67a1865b7808dd6f80d Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 14 Aug 1998 03:34:23 +0000 Subject: [PATCH] made pre-compiling the python files optional git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxPython/src/makefile.nt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/wxPython/src/makefile.nt b/utils/wxPython/src/makefile.nt index 02f510033b..58e085bc9d 100644 --- a/utils/wxPython/src/makefile.nt +++ b/utils/wxPython/src/makefile.nt @@ -23,6 +23,10 @@ FINAL=0 # be a directory contained in a PYTHONPATH directory. TARGETDIR=.. +# Set this to 1 for make to pre-compile the Python modules, 0 to +# just copy the sources and let Python compile them at the first +# runtime. +COMPILEPY=0 #---------------------------------------------------------------------- @@ -83,8 +87,10 @@ wxclean: pycfiles : $(PYMODULES) +!if "$(COMPILEPY)" == "1" $(PYTHONDIR)\python $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR) $(PYTHONDIR)\python -O $(PYTHONDIR)\Lib\compileall.py -l $(TARGETDIR) +!endif #---------------------------------------------------------------------- @@ -179,6 +185,9 @@ $(TARGETDIR)\cmndlgs.py : cmndlgs.py #------------------------------------------------------------------------ # # $Log$ +# Revision 1.2 1998/08/14 03:34:23 RD +# made pre-compiling the python files optional +# # Revision 1.1 1998/08/09 08:25:51 RD # Initial version # -- 2.47.2