Mercurial > cpython-lru_cache-weakref
annotate Mac/BuildScript/scripts/postflight.framework @ 81889:d64e0cf5f1a7 2.7
Issue #16256: OS X installer now sets correct permissions for doc directory.
| author | Ned Deily <nad@acm.org> |
|---|---|
| date | Fri, 01 Feb 2013 13:58:00 -0800 |
| parents | c2830debb15a |
| children |
| rev | line source |
|---|---|
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
1 #!/bin/sh |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
2 # |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
3 # Recompile the .py files. |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
4 # |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
5 |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
6 PYVER="@PYVER@" |
|
38926
09d1606e7524
Use a path without a double slash to compile the .py files after installation
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38645
diff
changeset
|
7 FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@" |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
8 |
|
56131
436ca775f26c
Merged revisions 74966 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38926
diff
changeset
|
9 "${FWK}/bin/python@PYVER@" -Wi -tt \ |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
10 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
81799
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
11 -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
12 "${FWK}/lib/python${PYVER}" |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
13 |
|
56131
436ca775f26c
Merged revisions 74966 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38926
diff
changeset
|
14 "${FWK}/bin/python@PYVER@" -Wi -tt -O \ |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
15 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
81799
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
16 -f -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \ |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
17 "${FWK}/lib/python${PYVER}" |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
18 |
|
81799
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
19 "${FWK}/bin/python@PYVER@" -Wi \ |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
20 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
21 -f -x badsyntax \ |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
22 "${FWK}/lib/python${PYVER}/site-packages" |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
23 |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
24 "${FWK}/bin/python@PYVER@" -Wi -O \ |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
25 "${FWK}/lib/python${PYVER}/compileall.py" \ |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
26 -f -x badsyntax \ |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
27 "${FWK}/lib/python${PYVER}/site-packages" |
|
c2830debb15a
Issue #14018: Backport OS X installer updates from 3.3.
Ned Deily <nad@acm.org>
parents:
56147
diff
changeset
|
28 |
|
56131
436ca775f26c
Merged revisions 74966 via svnmerge from
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
38926
diff
changeset
|
29 chgrp -R admin "${FWK}" |
|
38252
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
30 chmod -R g+w "${FWK}" |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
31 |
|
75bdd44f85dc
An improved script for building the binary distribution on MacOSX.
Ronald Oussoren <ronaldoussoren@mac.com>
parents:
diff
changeset
|
32 exit 0 |
