summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-07-29 13:18:19 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-07-29 13:18:19 (GMT)
commit0969c67bf5fd53e54e230cee99518bcd0988b657 (patch)
tree9b103639e900e819543f2da57cde20a038811224 /Mac
parenta4f79f97db7920387d6c7704a2b212d6b1503d9d (diff)
downloadcpython-0969c67bf5fd53e54e230cee99518bcd0988b657.zip
cpython-0969c67bf5fd53e54e230cee99518bcd0988b657.tar.gz
cpython-0969c67bf5fd53e54e230cee99518bcd0988b657.tar.bz2
Fix for issue 9392: without this patch a framework build will not install
2to3-2.7, while a versioned copy is installed of other tools and a versioned copy of2to3 is installed by python 2.6, 3.1 and the 3.2 alpha.
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Makefile.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/Mac/Makefile.in b/Mac/Makefile.in
index 12c1fcd..5ab0ae5 100644
--- a/Mac/Makefile.in
+++ b/Mac/Makefile.in
@@ -70,9 +70,10 @@ installunixtools:
if [ ! -d "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ]; then \
$(INSTALL) -d -m $(DIRMODE) "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin" ;\
fi
- for fn in python pythonw idle pydoc python-config smtpd.py \
+ for fn in python pythonw idle pydoc python-config smtpd.py 2to3 \
python$(VERSION) pythonw$(VERSION) idle$(VERSION) \
- pydoc$(VERSION) python$(VERSION)-config smtpd$(VERSION).py ;\
+ pydoc$(VERSION) python$(VERSION)-config smtpd$(VERSION).py \
+ 2to3-$(VERSION) ;\
do \
ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\
done
@@ -90,6 +91,7 @@ altinstallunixtools:
do \
ln -fs "$(prefix)/bin/$${fn}" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/$${fn}" ;\
done
+ ln -fs "$(prefix)/bin/2to3-$(VERSION)" "$(DESTDIR)$(FRAMEWORKUNIXTOOLSPREFIX)/bin/2to3-$(VERSION)" ;\
# 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
@@ -112,6 +114,10 @@ install_versionedtools:
mv "$(DESTDIR)$(prefix)/bin/smtpd.py" "$(DESTDIR)$(prefix)/bin/smtpd$(VERSION).py" ;\
ln -sf "smtpd$(VERSION).py" "$(DESTDIR)$(prefix)/bin/smtpd.py" ;\
fi
+ if [ ! -h "$(DESTDIR)$(prefix)/bin/2to3" ]; then \
+ mv "$(DESTDIR)$(prefix)/bin/2to3" "$(DESTDIR)$(prefix)/bin/2to3-$(VERSION)" ;\
+ ln -sf "2to3-$(VERSION)" "$(DESTDIR)$(prefix)/bin/2to3" ;\
+ fi
pythonw: $(srcdir)/Tools/pythonw.c Makefile