New submission from Greg Neagle <gregnea...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42514>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to