https://github.com/python/cpython/commit/7f9236cf03a2f9fe0dcdde337952c5d95ac8e5fa
commit: 7f9236cf03a2f9fe0dcdde337952c5d95ac8e5fa
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: ned-deily <[email protected]>
date: 2026-05-04T12:10:57Z
summary:

[3.13] gh-149351:  Avoid possible broken macOS framework install names when 
DESTDIR is specified during builds (GH-149352) (#149355)

(cherry picked from commit 1504bd671eebce0a99c15c113d219e0f344c03d9)

Co-authored-by: Ned Deily <[email protected]>

files:
A Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index ecf77bdc41cc67..f8418bb28290f9 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -955,7 +955,7 @@ 
$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK): \
        $(INSTALL) -d -m $(DIRMODE) $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)
        $(CC) -o $(LDLIBRARY) $(PY_CORE_LDFLAGS) -dynamiclib \
                -all_load $(LIBRARY) \
-               -install_name 
$(DESTDIR)$(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/$(PYTHONFRAMEWORK) \
+               -install_name 
$(PYTHONFRAMEWORKINSTALLNAMEPREFIX)/$(PYTHONFRAMEWORK) \
                -compatibility_version $(VERSION) \
                -current_version $(VERSION) \
                -framework CoreFoundation $(LIBS);
diff --git 
a/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst 
b/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst
new file mode 100644
index 00000000000000..792c8d394eccb2
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2026-05-04-06-03-50.gh-issue-149351.hN4sF0.rst
@@ -0,0 +1,2 @@
+Avoid possible broken macOS framework install names when DESTDIR is
+specified during builds.

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to