Skip to content

Commit c0c3fa8

Browse files
committed
Merge branch 'hotfix-matplotlib' into testing-testapps-rework
2 parents 5032aa6 + d47c04d commit c0c3fa8

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

pythonforandroid/recipes/matplotlib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def generate_libraries_pc_files(self, arch):
3232
3333
Because, for unix platforms, the mpl install script uses `pkg-config`
3434
to detect libraries installed in non standard locations (our case...
35-
well...we don't event install the libraries...so we must trick a little
35+
well...we don't even install the libraries...so we must trick a little
3636
the mlp install).
3737
"""
3838
pkg_config_path = self.get_recipe_env(arch)['PKG_CONFIG_PATH']
@@ -71,7 +71,7 @@ def download_web_backend_dependencies(self, arch):
7171
in our CI tests, so we download this package at the expected location
7272
by the mpl install script which is defined by the environ variable
7373
`XDG_CACHE_HOME` (we modify that one in our `get_recipe_env` so it will
74-
be the same regardles of the host platform).
74+
be the same regardless of the host platform).
7575
"""
7676

7777
env = self.get_recipe_env(arch)

pythonforandroid/recipes/matplotlib/mpl_android_fixes.patch

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--- matplotlib-3.1.1/setupext.py.orig 2019-12-31 01:25:00.000000000 +0100
2-
+++ matplotlib-3.1.1/setupext.py 2020-01-04 15:30:50.453260814 +0100
2+
+++ matplotlib-3.1.1/setupext.py 2020-03-01 21:12:41.493350250 +0100
33
@@ -604,8 +604,7 @@ class Numpy(SetupPackage):
44
name = "numpy"
55

@@ -10,19 +10,15 @@
1010
ext.define_macros.extend([
1111
# Ensure that PY_ARRAY_UNIQUE_SYMBOL is uniquely defined for each
1212
# extension.
13-
@@ -617,10 +616,10 @@ class Numpy(SetupPackage):
13+
@@ -617,7 +616,7 @@ class Numpy(SetupPackage):
1414
])
1515

1616
def get_setup_requires(self):
1717
- return ['numpy>=1.11']
1818
+ return [] # don't need it for p4a, due to above changes
1919

2020
def get_install_requires(self):
21-
- return ['numpy>=1.11']
22-
+ return ['numpy==1.16.4'] # to match p4a's target version
23-
24-
25-
class LibAgg(SetupPackage):
21+
return ['numpy>=1.11']
2622
@@ -674,7 +673,7 @@ class FreeType(SetupPackage):
2723
if sys.platform == 'win32':
2824
libfreetype = 'libfreetype.lib'

0 commit comments

Comments
 (0)