Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a1383e

Browse files
committed
#10820: Fix OS X framework installs to support version-specific
scripts (implemented in #10679).
1 parent dc004a3 commit 9a1383e

2 files changed

Lines changed: 4 additions & 23 deletions

File tree

Mac/Makefile.in

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ APPSUBDIRS=MacOS Resources
4747
compileall=$(srcdir)/../Lib/compileall.py
4848

4949
installapps: install_Python install_pythonw install_PythonLauncher install_IDLE \
50-
checkapplepython install_versionedtools
51-
50+
checkapplepython
5251

5352
install_pythonw: pythonw
5453
$(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)"
@@ -92,27 +91,6 @@ altinstallunixtools:
9291
ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\
9392
done
9493

95-
# By default most tools are installed without a version in their basename, to
96-
# make it easier to install (and use) several python versions side-by-side move
97-
# the tools to a version-specific name and add the non-versioned name as an
98-
# alias.
99-
install_versionedtools:
100-
for fn in idle pydoc ;\
101-
do \
102-
if [ -h "$(DESTDIR)$(prefix)/bin/$${fn}3" ]; then \
103-
continue ;\
104-
fi ;\
105-
mv "$(DESTDIR)$(prefix)/bin/$${fn}3" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\
106-
ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}3" ;\
107-
done
108-
mv "$(DESTDIR)$(prefix)/bin/2to3" "$(DESTDIR)$(prefix)/bin/2to3-$(VERSION)"
109-
ln -sf "2to3-$(VERSION)" "$(DESTDIR)$(prefix)/bin/2to3"
110-
if [ ! -h "$(DESTDIR)$(prefix)/bin/python3-config" ]; then \
111-
mv "$(DESTDIR)$(prefix)/bin/python3-config" "$(DESTDIR)$(prefix)/bin/python$(VERSION)-config" ;\
112-
ln -sf "python$(VERSION)-config" "$(DESTDIR)$(prefix)/bin/python3-config" ; \
113-
fi
114-
115-
11694
pythonw: $(srcdir)/Tools/pythonw.c Makefile
11795
$(CC) $(LDFLAGS) -DPYTHONFRAMEWORK='"$(PYTHONFRAMEWORK)"' -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
11896

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ C-API
189189
Build
190190
-----
191191

192+
- Issue #10820: Fix OS X framework installs to support version-specific
193+
scripts (#10679).
194+
192195
- Issue #7716: Under Solaris, don't assume existence of /usr/xpg4/bin/grep in
193196
the configure script but use $GREP instead. Patch by Fabian Groffen.
194197

0 commit comments

Comments
 (0)