mirror of
https://github.com/python/cpython
synced 2024-09-16 01:31:10 +00:00
Pass DIRMODE and FILEMODE to Mac/OSX/Makefile on framework builds (and
honor them). Use this when building the MacOSX binary installer to get group-writeable files. Ths fix works for directories and executables, not for files just yet, because of bug #735274.
This commit is contained in:
parent
8b6ed26dc7
commit
a226b5723a
|
@ -70,7 +70,7 @@ fi
|
|||
|
||||
$PYTHONSRC/configure --enable-framework=$INSTALLROOT/Library/Frameworks LDFLAGS=-Wl,-x
|
||||
make
|
||||
make frameworkinstall
|
||||
make DIRMODE=775 EXEMODE=775 FILEMODE=664 frameworkinstall
|
||||
|
||||
if [ "$builddocs" = "y" -o "$builddocs" = "Y" ]; then
|
||||
./python.exe $PYTHONSRC/Mac/OSX/setupDocs.py build
|
||||
|
|
|
@ -22,11 +22,12 @@ INSTALLED_PYTHONW=$(APPINSTALLDIR)/Contents/MacOS/python
|
|||
|
||||
# Items more-or-less copied from the main Makefile
|
||||
DIRMODE=755
|
||||
FILEMODE=644
|
||||
INSTALL=/usr/bin/install -c
|
||||
INSTALL_SYMLINK=ln -fs
|
||||
INSTALL_PROGRAM=${INSTALL}
|
||||
INSTALL_SCRIPT= ${INSTALL_PROGRAM}
|
||||
INSTALL_DATA= ${INSTALL} -m 644
|
||||
INSTALL_DATA= ${INSTALL} -m ${FILEMODE}
|
||||
LN=ln
|
||||
STRIPFLAG=-s
|
||||
##OPT=-g -O3 -Wall -Wstrict-prototypes -Wno-long-double -no-cpp-precomp \
|
||||
|
|
|
@ -853,18 +853,19 @@ frameworkinstallstructure: $(LDLIBRARY)
|
|||
# This installs Mac/Lib into the framework
|
||||
frameworkinstallmaclib:
|
||||
$(MAKE) -f $(srcdir)/Mac/OSX/Makefile installmacsubtree \
|
||||
BUILDPYTHON=./$(BUILDPYTHON) \
|
||||
BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
|
||||
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) \
|
||||
BUILDPYTHON=./$(BUILDPYTHON) DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
|
||||
srcdir=$(srcdir) builddir=. dstroot=$(PYTHONFRAMEWORKPREFIX)/../..
|
||||
|
||||
# This install the unix python and pythonw tools in /usr/local/bin
|
||||
frameworkinstallunixtools:
|
||||
$(MAKE) -f $(srcdir)/Mac/OSX/Makefile installunixtools \
|
||||
DIRMODE=$(DIRMODE) FILEMODE=$(FILEMODE) \
|
||||
srcdir=$(srcdir) builddir=. dstroot=$(PYTHONFRAMEWORKPREFIX)/../..
|
||||
|
||||
# This installs IDLE
|
||||
|
|
Loading…
Reference in a new issue