Skip to content

Commit ffaf102

Browse files
committed
Import changes to work with setup.py
1 parent c2531c7 commit ffaf102

File tree

19 files changed

+22
-23
lines changed

19 files changed

+22
-23
lines changed

doc/source/recipes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ directory, which you can access with
8585
this directory. It may be convenient to use the ``current_directory``
8686
context manager defined in toolchain.py::
8787

88-
from toolchain import current_directory
88+
from pythonforandroid.toolchain import current_directory
8989
def build_arch(self, arch):
9090
super(YourRecipe, self).build_arch(arch)
9191
with current_directory(self.get_build_dir(arch.arch)):
@@ -162,7 +162,7 @@ You can also use the ``shprint`` helper function from the p4a
162162
toolchain module, which will print information about the process and
163163
its current status::
164164

165-
from toolchain import shprint
165+
from pythonforandroid.toolchain import shprint
166166
shprint(sh.echo, '$PATH', _env=env)
167167

168168
You can also override the ``get_recipe_env`` method to add new env
@@ -227,7 +227,7 @@ install`` with an appropriate environment.
227227
For instance, the following is all that's necessary to create a recipe
228228
for the Vispy module::
229229

230-
from toolchain import PythonRecipe
230+
from pythonforandroid.toolchain import PythonRecipe
231231
class VispyRecipe(PythonRecipe):
232232
version = 'master'
233233
url = 'https://github.com/vispy/vispy/archive/{version}.zip'
@@ -388,7 +388,7 @@ The following template includes all the recipe sections you might
388388
use. Note that none are compulsory, feel free to delete method
389389
overrides if you do not use them::
390390

391-
from toolchain import Recipe, shprint, current_directory
391+
from pythonforandroid.toolchain import Recipe, shprint, current_directory
392392
from os.path import exists, join
393393
import sh
394394
import glob

pythonforandroid/bootstraps/pygame/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from toolchain import Bootstrap, shprint, current_directory, info, warning, ArchAndroid, logger, info_main, which
1+
from pythonforandroid.toolchain import Bootstrap, shprint, current_directory, info, warning, ArchAndroid, logger, info_main, which
22
from os.path import join, exists
33
from os import walk
44
import glob

pythonforandroid/bootstraps/sdl2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from toolchain import Bootstrap, shprint, current_directory, info, warning, ArchAndroid, logger, info_main, which
1+
from pythonforandroid.toolchain import Bootstrap, shprint, current_directory, info, warning, ArchAndroid, logger, info_main, which
22
from os.path import join, exists
33
from os import walk
44
import glob

pythonforandroid/recipes/android/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from toolchain import CythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour
2+
from pythonforandroid.toolchain import CythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour
33
import sh
44
from os.path import exists, join
55

pythonforandroid/recipes/androidsdl2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from toolchain import PythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour
2+
from pythonforandroid.toolchain import PythonRecipe, shprint, ensure_dir, current_directory, ArchAndroid, IncludedFilesBehaviour
33
import sh
44
from os.path import exists, join
55

pythonforandroid/recipes/hostpython2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from toolchain import Recipe, shprint, get_directory, current_directory, info, warning
2+
from pythonforandroid.toolchain import Recipe, shprint, get_directory, current_directory, info, warning
33
from os.path import join, exists
44
from os import chdir
55
import sh

pythonforandroid/recipes/kivy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from toolchain import CythonRecipe, shprint, current_directory, ArchAndroid
2+
from pythonforandroid.toolchain import CythonRecipe, shprint, current_directory, ArchAndroid
33
from os.path import exists, join
44
import sh
55
import glob

pythonforandroid/recipes/kivysdl2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from toolchain import CythonRecipe, shprint, current_directory, ArchAndroid
2+
from pythonforandroid.toolchain import CythonRecipe, shprint, current_directory, ArchAndroid
33
from os.path import exists, join
44
import sh
55
import glob

pythonforandroid/recipes/pygame/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
from toolchain import Recipe, shprint, ArchAndroid, current_directory, debug, info, ensure_dir
2+
from pythonforandroid.toolchain import Recipe, shprint, ArchAndroid, current_directory, debug, info, ensure_dir
33
from os.path import exists, join
44
import sh
55
import glob

pythonforandroid/recipes/pygame_bootstrap_components/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from toolchain import NDKRecipe, current_directory, shprint, info
1+
from pythonforandroid.toolchain import NDKRecipe, current_directory, shprint, info
22
from os.path import exists, join
33
import sh
44
import glob

0 commit comments

Comments
 (0)