cpython/Lib
Petr Viktorin 563bd5a4dc
bpo-41282: Fix broken make install (GH-26329)
A previous commit broke a check in sysconfig when building cpython itself.
This caused builds of the standard library modules to search a wrong
location (the installed location rather than the source directory) for
header files with the net effect that a ``make install``
incorrectly caused all extension modules to be rebuilt again and
with incorrect include file paths.

When building Python, we need two distinct "include" directories:
- source .h files
- install target for .h files

Note that this doesn't matter except when building Python from source.

Historically:
- source .h files were in the distutils scheme under 'include'
- the install directory was in the distutils.command.install scheme
    under 'headers'

GH-24549 merged these; sysconfig is now the single source of truth and
distutils is derived from it.

This commit introduces a "secret" scheme path, 'headers', which contains
the install target. It is only present when building Python.
The distutils code uses it if present, and falls back to 'include'.

Co-authored-by: Ned Deily <nad@python.org>
2021-05-24 18:48:44 -04:00
..
asyncio bpo-44011: Revert "New asyncio ssl implementation (GH-17975)" (GH-25848) 2021-05-03 16:21:59 +01:00
collections bpo-25478: Add total() method to collections.Counter (GH-25829) 2021-05-02 20:19:51 -07:00
concurrent
ctypes bpo-40222: "Zero cost" exception handling (GH-25729) 2021-05-07 15:19:19 +01:00
curses
dbm
distutils bpo-41282: Fix broken make install (GH-26329) 2021-05-24 18:48:44 -04:00
email
encodings
ensurepip bpo-43993: Update vendored pip to 21.1.1 (GH-25761) 2021-05-01 10:15:19 +01:00
html
http bpo-43972: Set content-length to 0 for http.server.SimpleHTTPRequestHandler 301s (GH-25705) 2021-05-06 12:25:52 -07:00
idlelib bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851) 2021-05-19 12:18:10 +03:00
importlib bpo-44210: make importlib.metadata._meta.PackageMetadata public (GH-26299) 2021-05-23 12:04:05 -07:00
json
lib2to3
logging
msilib
multiprocessing
pydoc_data
site-packages
sqlite3 sqlite3 test suite now works with SQLITE_DQS=0 (GH-26032) 2021-05-14 19:27:21 +09:00
test bpo-28307: Tests and fixes for optimization of C-style formatting (GH-26318) 2021-05-23 19:06:48 +03:00
tkinter bpo-41730: Show deprecation warnings for tkinter.tix (GH-22186) 2021-05-07 10:53:23 -05:00
turtledemo
unittest bpo-44017: Update test_contextlib_async not to emit DeprecationWarn (GH-25918) 2021-05-06 23:10:52 +09:00
urllib bpo-44002: Switch to lru_cache in urllib.parse. (GH-25798) 2021-05-11 17:01:44 -07:00
venv bpo-43749: Ensure current exe is copied when using venv on windows (GH-25216) 2021-05-19 02:37:17 -07:00
wsgiref
xml Remove effbot urls (GH-26308) 2021-05-22 14:09:54 +02:00
xmlrpc
zoneinfo fix typo in warning (#20620) 2021-04-25 10:45:05 -07:00
__future__.py Set the release for __future__.annotations to 3.11 (#25596) 2021-04-25 17:09:24 +01:00
__phello__.foo.py
_aix_support.py bpo-43666: Lib/_aix_support.py routines may fail in a WPAR environment (GH-25095) 2021-05-04 10:36:50 +02:00
_bootsubprocess.py
_collections_abc.py bpo-43977: Use tp_flags for collection matching (GH-25723) 2021-04-30 09:50:28 +01:00
_compat_pickle.py
_compression.py bpo-41486: Faster bz2/lzma/zlib via new output buffering (GH-21740) 2021-04-27 23:58:54 -07:00
_markupbase.py
_osx_support.py bpo-43568: Drop support for MACOSX_DEPLOYMENT_TARGET < 10.3 (GH-25827) 2021-05-02 20:28:43 -04:00
_py_abc.py
_pydecimal.py
_pyio.py
_sitebuiltins.py
_strptime.py
_threading_local.py
_weakrefset.py
abc.py
aifc.py
antigravity.py
argparse.py
ast.py bpo-44142: drop redundant parantheses when unparsing tuples as assignment targets (GH-26156) 2021-05-16 16:33:22 +03:00
asynchat.py
asyncore.py
base64.py
bdb.py fix docstring typo in bdb.py (GH-22323) 2021-05-17 00:20:33 +01:00
binhex.py
bisect.py
bz2.py
calendar.py
cgi.py bpo-41139: Deprecate cgi.log() (GH-25625) 2021-04-29 11:36:04 +09:00
cgitb.py
chunk.py
cmd.py
code.py
codecs.py
codeop.py
colorsys.py
compileall.py
configparser.py bpo-41963: document that ConfigParser strips off comments (GH-26197) 2021-05-18 18:11:23 +02:00
contextlib.py
contextvars.py
copy.py
copyreg.py
cProfile.py
crypt.py
csv.py
dataclasses.py bpo-44015: dataclasses should allow KW_ONLY to be specified only once per class (GH-25841) 2021-05-03 03:24:53 -04:00
datetime.py
decimal.py
difflib.py
dis.py bpo-40222: "Zero cost" exception handling (GH-25729) 2021-05-07 15:19:19 +01:00
doctest.py bpo-35753: Fix crash in doctest with unwrap-able functions (#22981) 2021-05-05 19:33:17 +02:00
enum.py bpo-43957: Add a missins space to the new format enum warning (#25770) 2021-05-01 20:26:09 +01:00
filecmp.py
fileinput.py bpo-43651: Fix EncodingWarning in fileinput and its test (GH-25648) 2021-04-27 15:47:16 +09:00
fnmatch.py
fractions.py bpo-44154: optimize Fraction pickling (GH-26186) 2021-05-17 00:20:02 -07:00
ftplib.py
functools.py
genericpath.py
getopt.py
getpass.py update docstring for win_getpass to reflect code changes (GH-24967) 2021-05-03 23:48:29 -07:00
gettext.py
glob.py
graphlib.py
gzip.py Fix typo in comment (GH-26162) 2021-05-16 16:35:41 +01:00
hashlib.py
heapq.py
hmac.py
imaplib.py
imghdr.py
imp.py
inspect.py bpo-20684: Remove unused inspect._signature_get_bound_param (GH-21100) 2021-05-22 15:51:43 +01:00
io.py
ipaddress.py bpo-33433 Fix private address checking for IPv4 mapped IPv6. (GH-26172) 2021-05-17 00:52:36 -07:00
keyword.py
linecache.py
locale.py
lzma.py
mailbox.py
mailcap.py
mimetypes.py
modulefinder.py
netrc.py bpo-43733: netrc try to use UTF-8 before using locale encoding. (GH-25781) 2021-05-02 14:01:02 +09:00
nntplib.py
ntpath.py bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path (GH-25264) 2021-04-28 16:50:17 +01:00
nturl2path.py
numbers.py bpo-44072: fix Complex, Integral docs for ** (GH-25986) 2021-05-14 18:01:48 -04:00
opcode.py bpo-26110: Add `CALL_METHOD_KW` opcode to speedup method calls with keywords (GH-26014) 2021-05-15 16:15:23 +01:00
operator.py
optparse.py
os.py bpo-43651: Fix EncodingWarning in os.fdopen() and test_os (GH-25654) 2021-04-29 11:35:36 +09:00
pathlib.py bpo-39950: Fix deprecation warning in test for pathlib.Path.link_to() (GH-26155) 2021-05-16 00:15:25 -07:00
pdb.py bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (#25438) 2021-05-12 00:26:30 +01:00
pickle.py
pickletools.py
pipes.py
pkgutil.py bpo-44061: Fix pkgutil.iter_modules regression when passed a pathlib.Path object (GH-25964) 2021-05-12 00:27:22 +01:00
platform.py
plistlib.py
poplib.py
posixpath.py bpo-43757: Make pathlib use os.path.realpath() to resolve symlinks in a path (GH-25264) 2021-04-28 16:50:17 +01:00
pprint.py
profile.py
pstats.py
pty.py
py_compile.py
pyclbr.py
pydoc.py bpo-43651: Fix EncodingWarning in pydoc. (GH-25644) 2021-04-27 12:46:20 +09:00
queue.py
quopri.py
random.py bpo-40465: Remove random module features deprecated in 3.9 (GH-25874) 2021-05-04 10:55:40 +02:00
re.py
reprlib.py
rlcompleter.py
runpy.py
sched.py
secrets.py
selectors.py
shelve.py
shlex.py
shutil.py bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files (GH-25058) 2021-05-17 01:28:21 -07:00
signal.py
site.py
smtpd.py
smtplib.py Quick pydoc update to smtplib.py (GH-22292) 2021-04-25 18:56:37 -07:00
sndhdr.py
socket.py bpo-43651: PEP 597: Fix socket.makefile() (GH-25645) 2021-04-27 13:16:28 +09:00
socketserver.py
sre_compile.py
sre_constants.py
sre_parse.py
ssl.py
stat.py
statistics.py bpo-44150: Support optional weights parameter for fmean() (GH-26175) 2021-05-20 20:22:26 -07:00
string.py
stringprep.py
struct.py
subprocess.py bpo-43776: Remove list call from args in Popen repr (GH-25338) 2021-04-28 01:16:38 -07:00
sunau.py
symtable.py
sysconfig.py bpo-41282: Fix broken make install (GH-26329) 2021-05-24 18:48:44 -04:00
tabnanny.py
tarfile.py bpo-8978: improve tarfile.open error message when lzma / bz2 are missing (GH-24850) 2021-04-27 10:39:01 -07:00
telnetlib.py
tempfile.py bpo-4928: Document NamedTemporaryFile non-deletion after SIGKILL (#26198) 2021-05-19 10:21:03 -04:00
textwrap.py
this.py
threading.py bpo-37788: Fix reference leak when Thread is never joined (GH-26103) 2021-05-14 12:37:20 -07:00
timeit.py
token.py
tokenize.py
trace.py
traceback.py bpo-33809: add the TracebackException.print() method (GH-24231) 2021-05-22 17:39:33 +01:00
tracemalloc.py
tty.py
turtle.py bpo-43935: Fix typo in Turtle.back() docstring (GH-25581) 2021-04-30 18:05:45 -04:00
types.py
typing.py bpo-44098: Drop ParamSpec from most `__parameters__` in typing generics (GH-26013) 2021-05-12 22:24:35 -07:00
uu.py
uuid.py
warnings.py
wave.py
weakref.py
webbrowser.py bpo-44059: Register the SerenityOS Browser in the webbrowser module (GH-25947) 2021-05-06 12:01:12 -07:00
xdrlib.py
zipapp.py
zipfile.py bpo-44095: Add suffix, stem and suffixes to zipfile.Path (GH-26129) 2021-05-14 10:57:36 -07:00
zipimport.py