File tree 2 files changed +31
-0
lines changed
pythonforandroid/recipes/coverage 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ from pythonforandroid .toolchain import PythonRecipe
2
+
3
+
4
+ class CoverageRecipe (PythonRecipe ):
5
+
6
+ version = '4.1'
7
+
8
+ url = 'https://pypi.python.org/packages/2d/10/6136c8e10644c16906edf4d9f7c782c0f2e7ed47ff2f41f067384e432088/coverage-{version}.tar.gz'
9
+
10
+ depends = ['hostpython2' , 'setuptools' ]
11
+
12
+ patches = ['fallback-utf8.patch' ]
13
+
14
+ site_packages_name = 'coverage'
15
+
16
+ call_hostpython_via_targetpython = False
17
+
18
+
19
+ recipe = CoverageRecipe ()
Original file line number Diff line number Diff line change
1
+ --- coverage-4.1/coverage/misc.py 2016-02-13 20:04:35.000000000 +0100
2
+ +++ patch/coverage/misc.py 2016-07-11 17:07:22.656603295 +0200
3
+ @@ -166,7 +166,8 @@
4
+ encoding = (
5
+ getattr(outfile, "encoding", None) or
6
+ getattr(sys.__stdout__, "encoding", None) or
7
+ - locale.getpreferredencoding()
8
+ + locale.getpreferredencoding() or
9
+ + 'utf-8'
10
+ )
11
+ return encoding
12
+
You can’t perform that action at this time.
0 commit comments