@@ -2,12 +2,19 @@ PYTHONBUILDDIR=../..
2
2
INSTALLDIR =/Library/Frameworks/Python.framework/Versions/Current
3
3
APPINSTALLDIR =/Applications/Python.app
4
4
5
+ # Variables for installing the "normal" unix binaries
6
+ UNIXBINDIR =/usr/local/bin
7
+ INSTALLED_PYTHON =$(INSTALLDIR ) /bin/python
8
+ INSTALLED_PYTHONW =$(APPINSTALLDIR ) /Contents/MacOS/python
9
+
5
10
# Items more-or-less copied from the main Makefile
6
11
DIRMODE =755
7
12
INSTALL =/usr/bin/install -c
13
+ INSTALL_SYMLINK =/usr/bin/install -l as
8
14
INSTALL_PROGRAM =${INSTALL}
9
15
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
10
16
INSTALL_DATA = ${INSTALL} -m 644
17
+ STRIPFLAG =-s
11
18
OPT =-g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp -fno-common -dynamic
12
19
INCLUDES =-I$(PYTHONBUILDDIR ) -I$(PYTHONBUILDDIR ) /Include \
13
20
-I$(PYTHONBUILDDIR ) /Mac/Include
@@ -71,7 +78,7 @@ install: pythonforbundle
71
78
esac ; \
72
79
done ; \
73
80
done
74
- $(INSTALL_PROGRAM ) pythonforbundle $(APPINSTALLDIR ) /Contents/MacOS/python
81
+ $(INSTALL_PROGRAM ) $( STRIPFLAG ) pythonforbundle $(APPINSTALLDIR ) /Contents/MacOS/python
75
82
# Create a temporary version of the resources here
76
83
$(PYTHON ) $(RFCONVERTER ) -r $(RESOURCEDIR ) /dialogs.rsrc dialogs.rsrc
77
84
$(PYTHON ) $(RFCONVERTER ) -r $(RESOURCEDIR ) /errors.rsrc errors.rsrc
@@ -179,5 +186,18 @@ installmacsubtree:
179
186
done
180
187
181
188
@echo '** Copy the contents of sample_sitecustomize.py (or similar code) into'
182
- @echo '**' $(INSTALLDIR)/lib/python2.2/sitecustomize.py
189
+ @echo '**' $(INSTALLDIR)/lib/python2.3/sitecustomize.py
190
+
191
+ # Put symlinks "python" and "pythonw" in the standard place
192
+ installunixprograms : $(INSTALLED_PYTHON ) pythonw.sh
193
+ $(INSTALL ) -d $(UNIXBINDIR )
194
+ $(INSTALL_SYMLINK ) $(INSTALLED_PYTHON ) $(UNIXBINDIR ) /python
195
+ $(INSTALL ) pythonw.sh $(UNIXBINDIR ) /pythonw
183
196
197
+ # This is for development purposes: put a symlink to the Mac source subtree in the
198
+ # framework
199
+ symlinkmacsubtree :
200
+ ln -sf ` cd $( PYTHONBUILDDIR) /Mac; pwd` $(INSTALLDIR ) /Mac
201
+
202
+ @echo '** Copy the contents of sample_sitecustomize.py (or similar code) into'
203
+ @echo '**' $(INSTALLDIR)/lib/python2.3/sitecustomize.py
0 commit comments