mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
#10820: Fix OS X framework installs to support version-specific
scripts (implemented in #10679).
This commit is contained in:
parent
dc004a3ad6
commit
9a1383e380
2 changed files with 4 additions and 23 deletions
|
@ -47,8 +47,7 @@ APPSUBDIRS=MacOS Resources
|
||||||
compileall=$(srcdir)/../Lib/compileall.py
|
compileall=$(srcdir)/../Lib/compileall.py
|
||||||
|
|
||||||
installapps: install_Python install_pythonw install_PythonLauncher install_IDLE \
|
installapps: install_Python install_pythonw install_PythonLauncher install_IDLE \
|
||||||
checkapplepython install_versionedtools
|
checkapplepython
|
||||||
|
|
||||||
|
|
||||||
install_pythonw: pythonw
|
install_pythonw: pythonw
|
||||||
$(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)"
|
$(INSTALL_PROGRAM) $(STRIPFLAG) pythonw "$(DESTDIR)$(prefix)/bin/pythonw$(VERSION)"
|
||||||
|
@ -92,27 +91,6 @@ altinstallunixtools:
|
||||||
ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\
|
ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
# By default most tools are installed without a version in their basename, to
|
|
||||||
# make it easier to install (and use) several python versions side-by-side move
|
|
||||||
# the tools to a version-specific name and add the non-versioned name as an
|
|
||||||
# alias.
|
|
||||||
install_versionedtools:
|
|
||||||
for fn in idle pydoc ;\
|
|
||||||
do \
|
|
||||||
if [ -h "$(DESTDIR)$(prefix)/bin/$${fn}3" ]; then \
|
|
||||||
continue ;\
|
|
||||||
fi ;\
|
|
||||||
mv "$(DESTDIR)$(prefix)/bin/$${fn}3" "$(DESTDIR)$(prefix)/bin/$${fn}$(VERSION)" ;\
|
|
||||||
ln -sf "$${fn}$(VERSION)" "$(DESTDIR)$(prefix)/bin/$${fn}3" ;\
|
|
||||||
done
|
|
||||||
mv "$(DESTDIR)$(prefix)/bin/2to3" "$(DESTDIR)$(prefix)/bin/2to3-$(VERSION)"
|
|
||||||
ln -sf "2to3-$(VERSION)" "$(DESTDIR)$(prefix)/bin/2to3"
|
|
||||||
if [ ! -h "$(DESTDIR)$(prefix)/bin/python3-config" ]; then \
|
|
||||||
mv "$(DESTDIR)$(prefix)/bin/python3-config" "$(DESTDIR)$(prefix)/bin/python$(VERSION)-config" ;\
|
|
||||||
ln -sf "python$(VERSION)-config" "$(DESTDIR)$(prefix)/bin/python3-config" ; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
pythonw: $(srcdir)/Tools/pythonw.c Makefile
|
pythonw: $(srcdir)/Tools/pythonw.c Makefile
|
||||||
$(CC) $(LDFLAGS) -DPYTHONFRAMEWORK='"$(PYTHONFRAMEWORK)"' -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
|
$(CC) $(LDFLAGS) -DPYTHONFRAMEWORK='"$(PYTHONFRAMEWORK)"' -o $@ $(srcdir)/Tools/pythonw.c -I.. -I$(srcdir)/../Include ../$(PYTHONFRAMEWORK).framework/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
|
||||||
|
|
||||||
|
|
|
@ -189,6 +189,9 @@ C-API
|
||||||
Build
|
Build
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Issue #10820: Fix OS X framework installs to support version-specific
|
||||||
|
scripts (#10679).
|
||||||
|
|
||||||
- Issue #7716: Under Solaris, don't assume existence of /usr/xpg4/bin/grep in
|
- Issue #7716: Under Solaris, don't assume existence of /usr/xpg4/bin/grep in
|
||||||
the configure script but use $GREP instead. Patch by Fabian Groffen.
|
the configure script but use $GREP instead. Patch by Fabian Groffen.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue