]> granicus.if.org Git - python/commitdiff
In Mac OS X framework builds don't assume that the executable will be
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 25 Feb 2003 12:41:10 +0000 (12:41 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 25 Feb 2003 12:41:10 +0000 (12:41 +0000)
called python.exe but actually pass it from the main Makefile to
Mac/OSX/Makefile. This makes framework builds work again on case
sensitive filesystems. Fixes bug #677753.

Mac/OSX/Makefile
Makefile.pre.in

index a3ca1ffa02ee74716ec09f8a88c26314bbf30879..5f8d6279789dbc5aaaff477313ce17fc6a3df15e 100644 (file)
@@ -8,6 +8,7 @@ srcdir = ../..
 dstroot=/.
 prefix=$(dstroot)/Library/Frameworks/Python.framework/Versions/$(VERSION)
 LIBDEST=$(prefix)/lib/python$(VERSION)
+BUILDPYTHON=$(builddir)/python.exe
 
 # These are normally glimpsed from the previous set
 bindir=$(dstroot)/usr/local/bin
@@ -41,7 +42,6 @@ STRIPFLAG=-s
 ##LD=cc
 CPMAC=/Developer/Tools/CpMac
 
-PYTHON=$(builddir)/python.exe
 APPTEMPLATE=$(srcdir)/Mac/OSXResources/app
 APPSUBDIRS=MacOS Resources Resources/English.lproj
 CACHERSRC=$(srcdir)/Mac/scripts/cachersrc.py
@@ -56,7 +56,7 @@ install_PythonLauncher:
        pbxbuild -target PythonLauncher -buildstyle Deployment \
                DSTROOT=$(dstroot) INSTALL_PATH=$(PYTHONAPPSPATH) install
        
-install_Python: $(PYTHON)
+install_Python:
        @for i in $(PYTHONAPPSDIR) $(APPINSTALLDIR) $(APPINSTALLDIR)/Contents; do \
                if test ! -d $$i; then \
                        echo "Creating directory $$i"; \
@@ -94,7 +94,7 @@ install_Python: $(PYTHON)
                        esac; \
                done; \
        done
-       $(INSTALL_PROGRAM) $(STRIPFLAG) $(PYTHON) $(APPINSTALLDIR)/Contents/MacOS/python
+       $(INSTALL_PROGRAM) $(STRIPFLAG) $(BUILDPYTHON) $(APPINSTALLDIR)/Contents/MacOS/python
 # Finally create the documentation symlink
        $(LN) -fsn ../../../../English.lproj/Documentation $(APPINSTALLDIR)/Contents/Resources/English.lproj/Documentation
        
@@ -207,9 +207,9 @@ installmacsubtree:
        
        $(INSTALL_DATA) $(PTHFILE) $(LIBDEST)/site-packages/
 
-       $(PYTHON) $(CACHERSRC) -v $(MACLIBDEST) $(MACTOOLSDEST)
-       $(PYTHON) -Wi -tt $(compileall) -x badsyntax $(MACTOOLSDEST)
-       $(PYTHON) -O -Wi -tt $(compileall) -x badsyntax $(MACTOOLSDEST)
+       $(BUILDPYTHON) $(CACHERSRC) -v $(MACLIBDEST) $(MACTOOLSDEST)
+       $(BUILDPYTHON) -Wi -tt $(compileall) -x badsyntax $(MACTOOLSDEST)
+       $(BUILDPYTHON) -O -Wi -tt $(compileall) -x badsyntax $(MACTOOLSDEST)
 
 #
 # We use the full name here in stead of $(INSTALLED_PYTHONW), because
index dd62c330f39c8354c9fbf73cb1a5a31ca0b72ab5..ae54905a4588cc4e0a19687867aa9a7d5444f0c5 100644 (file)
@@ -833,11 +833,13 @@ frameworkinstallstructure:        $(LDLIBRARY)
 # This installs Mac/Lib into the framework
 frameworkinstallmaclib:
        $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installmacsubtree \
+               BUILDPYTHON=./$(BUILDPYTHON) \
                srcdir=$(srcdir) builddir=. prefix=$(prefix) LIBDEST=$(LIBDEST)
 
 # This installs the IDE, the Launcher and other apps into /Applications
 frameworkinstallapps:
        $(MAKE) -f $(srcdir)/Mac/OSX/Makefile installapps \
+               BUILDPYTHON=./$(BUILDPYTHON) \
                srcdir=$(srcdir) builddir=. dstroot=$(PYTHONFRAMEWORKPREFIX)/../..
 
 # This install the unix python and pythonw tools in /usr/local/bin