annotate Mac/BuildScript/scripts/postflight.documentation @ 87690:66c1c9f32567 default tip

Add use_weakref option to functools.lru_cache The use_weakref option makes lru_cache create weak references to the function arguments when creating the cache key, which prevents them from staying in the memory forever even after all other references to them are gone. This is a proof of concept for http://bugs.python.org/issue19859
author Radomir Dopieralski <devel@sheep.art.pl>
date Tue, 03 Dec 2013 16:02:48 +0100
parents e8a1b5757067
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38673
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
1 #!/bin/sh
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
2
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
3 PYVER="@PYVER@"
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
4 FWK="/Library/Frameworks/Python.framework/Versions/${PYVER}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
5 FWK_DOCDIR_SUBPATH="Resources/English.lproj/Documentation"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
6 FWK_DOCDIR="${FWK}/${FWK_DOCDIR_SUBPATH}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
7 APPDIR="/Applications/Python ${PYVER}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
8 SHARE_DIR="${FWK}/share"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
9 SHARE_DOCDIR="${SHARE_DIR}/doc/python${PYVER}"
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
10 SHARE_DOCDIR_TO_FWK="../../.."
38673
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
11
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
12 # make link in /Applications/Python m.n/ for Finder users
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
13 if [ -d "${APPDIR}" ]; then
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
14 ln -fhs "${FWK_DOCDIR}/index.html" "${APPDIR}/Python Documentation.html"
38673
a19c20c5e5c7 Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff changeset
15 fi
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
16
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
17 # make share/doc link in framework for command line users
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
18 if [ -d "${SHARE_DIR}" ]; then
81890
e8a1b5757067 Issue #16256: OS X installer now sets correct permissions for doc directory.
Ned Deily <nad@acm.org>
parents: 81800
diff changeset
19 mkdir -m 775 -p "${SHARE_DOCDIR}"
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
20 # make relative link to html doc directory
68083
a036c30ab5ae Issue #11268: Prevent Mac OS X Installer failure if Documentation
Ned Deily <nad@acm.org>
parents: 67901
diff changeset
21 ln -fhs "${SHARE_DOCDIR_TO_FWK}/${FWK_DOCDIR_SUBPATH}" "${SHARE_DOCDIR}/html"
67901
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
22 fi
e9fb6d50459a - Issue #11079: The /Applications/Python x.x folder created by the Mac
Ned Deily <nad@acm.org>
parents: 40450
diff changeset
23