mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.13] gh-120522: Add a --with-app-store-compliance
configure option to patch out problematic code (GH-120984) (#121173)
gh-120522: Add a `--with-app-store-compliance` configure option to patch out problematic code (GH-120984)
* Add --app-store-compliance configuration option.
* Added blurb.
* Correct tab-vs-spaces formatting issue.
* Correct source file name in docs.
* Correct source code reference in Mac docs
* Only apply the patch forward, and ensure the working directory is correct.
* Make patching reslient to multiple builds.
* Documentation fixes found during review
* Documentation and configure.ac syntax improvements
* Regenerate configure script.
* Silence the patch echo output.
---------
(cherry picked from commit 48cd104b0c
)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
This commit is contained in:
parent
00b071137b
commit
0dfb437a32
9 changed files with 238 additions and 2 deletions
|
@ -188,6 +188,28 @@ distributable application:
|
|||
* `PyInstaller <https://pyinstaller.org/>`__: A cross-platform packaging tool that creates
|
||||
a single file or folder as a distributable artifact.
|
||||
|
||||
App Store Compliance
|
||||
--------------------
|
||||
|
||||
Apps submitted for distribution through the macOS App Store must pass Apple's
|
||||
app review process. This process includes a set of automated validation rules
|
||||
that inspect the submitted application bundle for problematic code.
|
||||
|
||||
The Python standard library contains some code that is known to violate these
|
||||
automated rules. While these violations appear to be false positives, Apple's
|
||||
review rules cannot be challenged. Therefore, it is necessary to modify the
|
||||
Python standard library for an app to pass App Store review.
|
||||
|
||||
The Python source tree contains
|
||||
:source:`a patch file <Mac/Resources/app-store-compliance.patch>` that will remove
|
||||
all code that is known to cause issues with the App Store review process. This
|
||||
patch is applied automatically when CPython is configured with the
|
||||
:option:`--with-app-store-compliance` option.
|
||||
|
||||
This patch is not normally required to use CPython on a Mac; nor is it required
|
||||
if you are distributing an app *outside* the macOS App Store. It is *only*
|
||||
required if you are using the macOS App Store as a distribution channel.
|
||||
|
||||
Other Resources
|
||||
===============
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue