Skip to content

Commit 618714f

Browse files
committed
Moved build stuff to new build.py, and cleaned up
1 parent 44a0e99 commit 618714f

File tree

9 files changed

+27
-684
lines changed

9 files changed

+27
-684
lines changed

pythonforandroid/logger.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
from colorama import Style as Colo_Style, Fore as Colo_Fore
1010

1111

12+
# monkey patch to show full output
13+
sh.ErrorReturnCode.truncate_cap = 999999
14+
15+
1216
class LevelDifferentiatingFormatter(logging.Formatter):
1317
def format(self, record):
1418
if record.levelno > 30:

pythonforandroid/recipe.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,6 @@ def get_build_dir(self, arch):
263263
'''Given the arch name, returns the directory where the
264264
downloaded/copied package will be built.'''
265265

266-
# if self.url is not None:
267-
# return join(self.get_build_container_dir(arch),
268-
# get_directory(self.versioned_url))
269266
return join(self.get_build_container_dir(arch), self.name)
270267

271268
def get_recipe_dir(self):
@@ -346,8 +343,6 @@ def unpack(self, arch):
346343
shprint(sh.mkdir, '-p', build_dir)
347344
shprint(sh.rmdir, build_dir)
348345
ensure_dir(build_dir)
349-
# shprint(sh.ln, '-s', user_dir,
350-
# join(build_dir, get_directory(self.versioned_url)))
351346
shprint(sh.git, 'clone', user_dir, self.get_build_dir(arch))
352347
return
353348

pythonforandroid/recipes/freetype/__init__.py

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

2-
from pythonforandroid.toolchain import Recipe, shprint, get_directory, current_directory, ArchARM
2+
from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM
33
from os.path import exists, join, realpath
44
from os import uname
55
import glob

pythonforandroid/recipes/harfbuzz/__init__.py

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

2-
from pythonforandroid.toolchain import Recipe, shprint, get_directory, current_directory, ArchARM
2+
from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM
33
from os.path import exists, join, realpath
44
from os import uname
55
import glob

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 pythonforandroid.toolchain import Recipe, shprint, get_directory, current_directory, info, warning
2+
from pythonforandroid.toolchain import Recipe, shprint, current_directory, info, warning
33
from os.path import join, exists
44
from os import chdir
55
import sh

pythonforandroid/recipes/hostpython3/__init__.py

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

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

pythonforandroid/recipes/python3/__init__.py

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

2-
from pythonforandroid.toolchain import Recipe, shprint, get_directory, current_directory, ArchARM
2+
from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM
33
from os.path import exists, join
44
from os import uname
55
import glob

0 commit comments

Comments
 (0)