Mercurial > cpython-lru_cache-weakref
annotate Mac/BuildScript/scripts/postflight.framework @ 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 | 99708bb33bf7 |
| children |
| 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 # Recompile the .py files. |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
4 # |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
5 |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
6 PYVER="@PYVER@" |
|
39442
654c380cf8b9
Merged revisions 46753-51188 via svnmerge from
Thomas Wouters <thomas@python.org>
parents:
38673
diff
changeset
|
7 FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@" |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
8 |
|
56133
b3d25e6f66f1
Merged revisions 74968 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47464
diff
changeset
|
9 "${FWK}/bin/python@PYVER@" -Wi \ |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
10 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
77676
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
11 -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
12 "${FWK}/lib/python${PYVER}" |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
13 |
|
56133
b3d25e6f66f1
Merged revisions 74968 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47464
diff
changeset
|
14 "${FWK}/bin/python@PYVER@" -Wi -O \ |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
15 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
77676
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
16 -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
17 "${FWK}/lib/python${PYVER}" |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
18 |
|
77676
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
19 "${FWK}/bin/python@PYVER@" -Wi \ |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
20 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
21 -f -x badsyntax \ |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
22 "${FWK}/lib/python${PYVER}/site-packages" |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
23 |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
24 "${FWK}/bin/python@PYVER@" -Wi -O \ |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
25 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
26 -f -x badsyntax \ |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
27 "${FWK}/lib/python${PYVER}/site-packages" |
|
99708bb33bf7
Update compileall calls in OS X installer postflight script to
Ned Deily <nad@acm.org>
parents:
60707
diff
changeset
|
28 |
|
56133
b3d25e6f66f1
Merged revisions 74968 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
47464
diff
changeset
|
29 chgrp -R admin "${FWK}" |
|
38673
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
30 chmod -R g+w "${FWK}" |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
31 |
|
a19c20c5e5c7
Merge the rest of the trunk.
Thomas Wouters <thomas@python.org>
parents:
diff
changeset
|
32 exit 0 |
