Skip to content

Commit d5b46a8

Browse files
committed
remove site.py patch, fixed upstream
1 parent f216de0 commit d5b46a8

4 files changed

Lines changed: 0 additions & 339 deletions

File tree

cpython-unix/build-cpython.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -338,12 +338,6 @@ if [ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_15}" ]; then
338338
patch -p1 -i "${ROOT}/patch-testinternalcapi-interpreter-extern.patch"
339339
fi
340340

341-
# Apply https://github.com/python/cpython/pull/149516 for a 3.15.0b1
342-
# site startup regression.
343-
if [ "${PYTHON_MAJMIN_VERSION}" = "3.15" ]; then
344-
patch -p1 -i "${ROOT}/patch-site-reentrant-startup-files-3.15.patch"
345-
fi
346-
347341
# Most bits look at CFLAGS. But setup.py only looks at CPPFLAGS.
348342
# So we need to set both.
349343
CFLAGS="${EXTRA_TARGET_CFLAGS} -fPIC -I${TOOLS_PATH}/deps/include -I${TOOLS_PATH}/deps/include/ncursesw"

cpython-unix/patch-site-reentrant-startup-files-3.15.patch

Lines changed: 0 additions & 158 deletions
This file was deleted.

cpython-windows/build.py

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -311,30 +311,6 @@ def static_replace_in_file(p: pathlib.Path, search, replace):
311311
fh.write(data)
312312

313313

314-
def apply_source_patch(cpython_source_path: pathlib.Path, patch_path: pathlib.Path):
315-
with patch_path.open("rb") as fh:
316-
patch = fh.read().replace(b"\r\n", b"\n")
317-
318-
with tempfile.NamedTemporaryFile("wb", delete=False) as fh:
319-
fh.write(patch)
320-
normalized_patch = pathlib.Path(fh.name)
321-
322-
try:
323-
subprocess.run(
324-
[
325-
"git.exe",
326-
"-C",
327-
str(cpython_source_path),
328-
"apply",
329-
"--whitespace=nowarn",
330-
str(normalized_patch),
331-
],
332-
check=True,
333-
)
334-
finally:
335-
normalized_patch.unlink()
336-
337-
338314
OPENSSL_PROPS_REMOVE_RULES_LEGACY = b"""
339315
<ItemGroup>
340316
<_SSLDLL Include="$(opensslOutDir)\libcrypto$(_DLLSuffix).dll" />
@@ -1523,12 +1499,6 @@ def build_cpython(
15231499
cpython_source_path = td / ("Python-%s" % python_version)
15241500
pcbuild_path = cpython_source_path / "PCbuild"
15251501

1526-
if python_version.startswith("3.15."):
1527-
apply_source_patch(
1528-
cpython_source_path,
1529-
SUPPORT / "patch-site-reentrant-startup-files-3.15.patch",
1530-
)
1531-
15321502
out_dir = td / "out"
15331503

15341504
build_dir = out_dir / "python" / "build"

cpython-windows/patch-site-reentrant-startup-files-3.15.patch

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)