Mercurial > cpython-lru_cache-weakref
annotate Python/getcopyright.c @ 73323:dad02a080bbc
Improve byte-compilation in packaging to be independent of -O or -B.
The code I fixed to comply with PEP 3147 still had one bug: When run
under python -O, some paths for pyc files would be pyo, because I called
imp.cache_from_source without explicit debug_override argument in some
places, and under -O that would return .pyo (this is well explained in
the imp docs). Now all code (util.byte_compile, build_py, install_lib)
can create .pyo files according to options given by users,
without interference from the calling Python’s own optimize mode.
On a related topic, I also removed the code that prevented byte
compilation under python -B. The rationale is that packaging gives
control over the creation of pyc files to the user with its own explicit
option, and the behavior should not be changed if the calling Python
happens to run with -B for whatever reason. I will argue that this is a
bug fix and ask to be allowed to backport this change to distutils.
Finally, I moved one nugget of information about the --compile and
--optimize options from the source into the doc. It clears up a
misunderstanding that I (and maybe other people) had.
| author | Éric Araujo <merwok@netwok.org> |
|---|---|
| date | Thu, 03 Nov 2011 05:08:28 +0100 |
| parents | 3c9232a684ae |
| children | 879798e70473 |
| rev | line source |
|---|---|
| 2896 | 1 /* Return the copyright string. This is updated manually. */ |
| 2 | |
| 3101 | 3 #include "Python.h" |
| 4 | |
|
63348
550b38caf5c1
Update copyright years and add releases to release list. Also update Sphinx version number.
Georg Brandl <georg@python.org>
parents:
58060
diff
changeset
|
5 static char cprt[] = |
|
15985
17f23f8cd8c7
Add my name to the copyright notice.
Guido van Rossum <guido@python.org>
parents:
14395
diff
changeset
|
6 "\ |
|
67249
5db89853cace
Merged revisions 87607 via svnmerge from
Benjamin Peterson <benjamin@python.org>
parents:
58062
diff
changeset
|
7 Copyright (c) 2001-2011 Python Software Foundation.\n\ |
|
15985
17f23f8cd8c7
Add my name to the copyright notice.
Guido van Rossum <guido@python.org>
parents:
14395
diff
changeset
|
8 All Rights Reserved.\n\ |
|
17f23f8cd8c7
Add my name to the copyright notice.
Guido van Rossum <guido@python.org>
parents:
14395
diff
changeset
|
9 \n\ |
|
17f23f8cd8c7
Add my name to the copyright notice.
Guido van Rossum <guido@python.org>
parents:
14395
diff
changeset
|
10 Copyright (c) 2000 BeOpen.com.\n\ |
|
14395
532c9ce6c87c
All right. More uniformity, and extra blank lines.
Guido van Rossum <guido@python.org>
parents:
14394
diff
changeset
|
11 All Rights Reserved.\n\ |
|
532c9ce6c87c
All right. More uniformity, and extra blank lines.
Guido van Rossum <guido@python.org>
parents:
14394
diff
changeset
|
12 \n\ |
|
17458
0d0546bd8448
Because this code was derived from Python 1.6.1 (amongst others), the
Guido van Rossum <guido@python.org>
parents:
17443
diff
changeset
|
13 Copyright (c) 1995-2001 Corporation for National Research Initiatives.\n\ |
|
14384
6fb61b83435d
Change the copyright notice according to CNRI's wishes, with
Guido van Rossum <guido@python.org>
parents:
14375
diff
changeset
|
14 All Rights Reserved.\n\ |
|
14395
532c9ce6c87c
All right. More uniformity, and extra blank lines.
Guido van Rossum <guido@python.org>
parents:
14394
diff
changeset
|
15 \n\ |
|
14394
2eeb58b43eb1
Use periods, not semicolons between Copyright and All Rights Reserved.
Guido van Rossum <guido@python.org>
parents:
14384
diff
changeset
|
16 Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.\n\ |
|
14384
6fb61b83435d
Change the copyright notice according to CNRI's wishes, with
Guido van Rossum <guido@python.org>
parents:
14375
diff
changeset
|
17 All Rights Reserved."; |
|
12658
e2e436a62898
At Bob Kahn's request, add CNRI to the copyright string (but not to
Guido van Rossum <guido@python.org>
parents:
4503
diff
changeset
|
18 |
| 2896 | 19 const char * |
|
13658
f79434ee41fa
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
Thomas Wouters <thomas@python.org>
parents:
13255
diff
changeset
|
20 Py_GetCopyright(void) |
| 2896 | 21 { |
|
12658
e2e436a62898
At Bob Kahn's request, add CNRI to the copyright string (but not to
Guido van Rossum <guido@python.org>
parents:
4503
diff
changeset
|
22 return cprt; |
| 2896 | 23 } |
