@@ -12,7 +12,7 @@ to take care of compilation for any compiled components, as these must
1212be compiled for Android with the correct architecture.
1313
1414python-for-android comes with many recipes for popular modules. No
15- recipe is necessary to use of Python modules with no
15+ recipe is necessary for Python modules which have no
1616compiled components; these are installed automaticaly via pip.
1717
1818If you are new to building recipes, it is recommended that you first
@@ -76,7 +76,7 @@ The actual build process takes place via three core methods::
7676These methods are always run in the listed order; prebuild, then
7777build, then postbuild.
7878
79- If you defined an url for your recipe, you do *not * need to manually
79+ If you defined a url for your recipe, you do *not * need to manually
8080download it, this is handled automatically.
8181
8282The recipe will automatically be built in a special isolated build
@@ -89,7 +89,7 @@ context manager defined in toolchain.py::
8989 def build_arch(self, arch):
9090 super(YourRecipe, self).build_arch(arch)
9191 with current_directory(self.get_build_dir(arch.arch)):
92- with open('example_file.txt', 'w'):
92+ with open('example_file.txt', 'w') as fileh :
9393 fileh.write('This is written to a file within the build dir')
9494
9595The argument to each method, ``arch ``, is an object relating to the
@@ -192,7 +192,7 @@ its current status::
192192 shprint(sh.echo, '$PATH', _env=env)
193193
194194You can also override the ``get_recipe_env `` method to add new env
195- vars for the use of your recipe. For instance, the Kivy recipe does
195+ vars for use in your recipe. For instance, the Kivy recipe does
196196the following when compiling for SDL2, in order to tell Kivy what
197197backend to use::
198198
@@ -350,12 +350,12 @@ For reference, the code that accomplishes this is the following::
350350 shprint(sh.find, build_lib[0], '-name', '*.o', '-exec',
351351 env['STRIP'], '{}', ';', _env=env)
352352
353- The failing build and manual cythonisation is necessary, first to
353+ The failing build and manual cythonisation is necessary, firstly to
354354make sure that any .pyx files have been generated by setup.py, and
355- second because cython isn't installed in the hostpython build.
355+ secondly because cython isn't installed in the hostpython build.
356356
357357This may actually fail if the setup.py tries to import cython before
358- making any pyx files (in which case it crashes too early), although
358+ making any . pyx files (in which case it crashes too early), although
359359this is probably not usually an issue. If this happens to you, try
360360patching to remove this import or make it fail quietly.
361361
@@ -377,7 +377,7 @@ Using an NDKRecipe
377377------------------
378378
379379If you are writing a recipe not for a Python module but for something
380- that would normall go in the JNI dir of an Android project (i.e. it
380+ that would normally go in the JNI dir of an Android project (i.e. it
381381has an ``Application.mk `` and ``Android.mk `` that the Android build
382382system can use), you can use an NDKRecipe to automatically set it
383383up. The NDKRecipe overrides the normal ``get_build_dir `` method to
0 commit comments