8000 bpo-38329: python.org macOS installers now update Current symlink (GH… · python/cpython@bcc136b · GitHub
[go: up one dir, main page]

Skip to content

Commit bcc136b

Browse files
authored
bpo-38329: python.org macOS installers now update Current symlink (GH-19650)
Previously, python.org macOS installers did not alter the Current version symlink in /Library/Frameworks/Python.framework/Versions when installing a version of Python 3.x, only when installing 2.x. Now that Python 2 is retired, it's time to change that. This should make it a bit easier to embed Python 3 into other macOS applications.
1 parent b310700 commit bcc136b

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Mac/BuildScript/build-installer.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,12 +1309,6 @@ def buildPython():
13091309

13101310
os.chdir(curdir)
13111311

1312-
if PYTHON_3:
1313-
# Remove the 'Current' link, that way we don't accidentally mess
1314-
# with an already installed version of python 2
1315-
os.unlink(os.path.join(rootDir, 'Library', 'Frameworks',
1316-
'Python.framework', 'Versions', 'Current'))
1317-
13181312
def patchFile(inPath, outPath):
13191313
data = fileContents(inPath)
13201314
data = data.replace('$FULL_VERSION', getFullVersion())
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
python.org macOS installers now update the Current version symlink of
2+
/Library/Frameworks/Python.framework/Versions for 3.9 installs. Previously,
3+
Current was only updated for Python 2.x installs. This should make it easier
4+
to emb 3313 ed Python 3 into other macOS applications.

0 commit comments

Comments
 (0)
0