[New-bugs-announce] [issue42514] Relocatable framework for macOS

Greg Neagle report at bugs.python.org
Mon Nov 30 13:28:37 EST 2020


New submission from Greg Neagle <Gregneagle at mac.com>:

The current Python.framework installed by the macOS packages is hard-coded to /Library/Frameworks/Python.framework and breaks if renamed or moved.

A relocatable framework would allow users/admins/developers to install a specific framework to an alternate location, or include it inside an application bundle, or access it from a mounted disk image.

Currently it is possible to use `otool` and `install_name_tool` to convert the current framework into one that can be relocated, but doing so breaks any code signing. With Apple Silicon, all executable code and libraries must be code signed, so the effort of relocating the Python framework becomes that more difficult.

Ideally the official macOS framework would be built as relocatable, eliminating the need to modify it and re-sign it to use it anywhere other than  /Library/Frameworks/Python.framework.

----------
components: macOS
messages: 382171
nosy: gregneagle, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: Relocatable framework for macOS
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42514>
_______________________________________


More information about the New-bugs-announce mailing list