Skip to content

Instantly share code, notes, and snippets.

@opacam
Created April 29, 2020 11:22
Show Gist options
  • Save opacam/49e9395ef036560f30d53f7666e1f2f8 to your computer and use it in GitHub Desktop.
Save opacam/49e9395ef036560f30d53f7666e1f2f8 to your computer and use it in GitHub Desktop.
Patch to use CPython `bpo-22490` for hospython/python p4a's recipes (to fix `pyconfig.h` issue)
Index: pythonforandroid/recipes/hostpython3/__init__.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pythonforandroid/recipes/hostpython3/__init__.py (revision 60c624ffe839e0f975bfdbf5a2adfd88743cf010)
+++ pythonforandroid/recipes/hostpython3/__init__.py (date 1588157424290)
@@ -24,14 +24,14 @@
:class:`~pythonforandroid.python.HostPythonRecipe`
'''
- version = '3.8.1'
+ version = '3.7.7'
name = 'hostpython3'
build_subdir = 'native-build'
'''Specify the sub build directory for the hostpython3 recipe. Defaults
to ``native-build``.'''
- url = 'https://www.python.org/ftp/python/{version}/Python-{version}.tgz'
+ url = 'https://github.com/python/cpython/archive/5765acaf64cc2c52ce8a35de9407faddf6885598.zip'
'''The default url to download our host python recipe. This url will
change depending on the python version set in attribute :attr:`version`.'''
Index: pythonforandroid/recipes/python3/__init__.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pythonforandroid/recipes/python3/__init__.py (revision 60c624ffe839e0f975bfdbf5a2adfd88743cf010)
+++ pythonforandroid/recipes/python3/__init__.py (date 1588158165502)
@@ -50,8 +50,8 @@
:class:`~pythonforandroid.python.GuestPythonRecipe`
'''
- version = '3.8.1'
- url = 'https://www.python.org/ftp/python/{version}/Python-{version}.tgz'
+ version = '3.7.7'
+ url = 'https://github.com/python/cpython/archive/5765acaf64cc2c52ce8a35de9407faddf6885598.zip'
name = 'python3'
patches = [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment