Skip to content

Commit c831e19

Browse files
committed
Set quite param to compileapp
1 parent 4329f2e commit c831e19

File tree

7 files changed

+31
-27
lines changed

7 files changed

+31
-27
lines changed

clean-build-copy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ build() {
6565
echo "[INFO] Build [$1]"
6666
python $p4a clean_builds
6767
rm -rf $distFolder
68-
python $p4a apk --private $pythonApp --dist_name=$pythonAppDistName --package=$pythonAppPackageName --name=$pythonAppName --version=1 --ndk_dir $ANDROID_NDK_HOME --ndk_version r16b --requirements=android,pyopenssl,pycrypto,openssl --android_api=23 --arch=$1 --java-build-tool gradle
68+
python $p4a apk --private=$pythonApp --dist_name=$pythonAppDistName --package=$pythonAppPackageName --name=$pythonAppName --version=1 --ndk_dir=$ANDROID_NDK_HOME --ndk_version=r16b --requirements=android,pyopenssl,pycrypto,openssl --android_api=23 --arch=$1 --java-build-tool=gradle
6969
# if [ -z "$TRAVIS" ]
7070
# then
7171
# copy_libs

pythonforandroid/bootstraps/sdl2/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
from os.path import join, exists
2+
3+
import sh
4+
15
from pythonforandroid.toolchain import (
26
Bootstrap, shprint, current_directory, info, info_main)
37
from pythonforandroid.util import ensure_dir
4-
from os.path import join, exists
5-
import sh
68

79

810
class SDL2GradleBootstrap(Bootstrap):
@@ -36,7 +38,7 @@ def run_distribute(self):
3638
hostpython = sh.Command(self.ctx.hostpython)
3739
if self.ctx.python_recipe.name == 'python2':
3840
try:
39-
shprint(hostpython, '-OO', '-m', 'compileall',
41+
shprint(hostpython, '-OO', '-m', 'compileall', '-q',
4042
python_install_dir,
4143
_tail=10, _filterout="^Listing")
4244
except sh.ErrorReturnCode:

pythonforandroid/bootstraps/sdl2/build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def compile_dir(dfn):
215215
# -OO = strip docstrings
216216
if PYTHON is None:
217217
return
218-
subprocess.call([PYTHON, '-OO', '-m', 'compileall', '-f', dfn])
218+
subprocess.call([PYTHON, '-OO', '-m', 'compileall', '-f', '-q', dfn])
219219

220220

221221
def make_package(args):

pythonforandroid/bootstraps/service_only/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import glob
22
from os import walk
33
from os.path import join, exists, curdir, abspath
4+
45
import sh
6+
57
from pythonforandroid.toolchain import Bootstrap, current_directory, info, info_main, shprint
68

79

@@ -42,7 +44,7 @@ def run_distribute(self):
4244
hostpython = sh.Command(self.ctx.hostpython)
4345
if not self.ctx.python_recipe.from_crystax:
4446
try:
45-
shprint(hostpython, '-OO', '-m', 'compileall',
47+
shprint(hostpython, '-OO', '-m', 'compileall', '-q',
4648
self.ctx.get_python_install_dir(),
4749
_tail=10, _filterout="^Listing")
4850
except sh.ErrorReturnCode:

pythonforandroid/bootstraps/service_only/build/build.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
from __future__ import print_function
44

5-
from os.path import dirname, join, isfile, realpath, relpath, split, exists
6-
from os import makedirs
75
import os
8-
import tarfile
9-
import subprocess
6+
import shlex
107
import shutil
11-
from zipfile import ZipFile
8+
import subprocess
129
import sys
13-
import shlex
14-
10+
import tarfile
1511
from fnmatch import fnmatch
12+
from os import makedirs
13+
from os.path import dirname, join, isfile, realpath, relpath, split, exists
14+
from zipfile import ZipFile
1615

1716
import jinja2
1817

@@ -205,7 +204,7 @@ def compile_dir(dfn):
205204

206205
return # Currently leaving out the compile to pyo step because it's somehow broken
207206
# -OO = strip docstrings
208-
subprocess.call([PYTHON, '-OO', '-m', 'compileall', '-f', dfn])
207+
subprocess.call([PYTHON, '-OO', '-m', 'compileall', '-f', '-q', dfn])
209208

210209

211210
def make_package(args):

pythonforandroid/bootstraps/webview/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
from pythonforandroid.toolchain import Bootstrap, current_directory, info, info_main, shprint
2-
from os.path import join, exists, curdir, abspath
3-
from os import walk
41
import glob
2+
from os import walk
3+
from os.path import join, exists, curdir, abspath
4+
55
import sh
66

7+
from pythonforandroid.toolchain import Bootstrap, current_directory, info, info_main, shprint
8+
79

810
class WebViewBootstrap(Bootstrap):
911
name = 'webview'
@@ -39,7 +41,7 @@ def run_distribute(self):
3941
hostpython = sh.Command(self.ctx.hostpython)
4042
if not self.ctx.python_recipe.from_crystax:
4143
try:
42-
shprint(hostpython, '-OO', '-m', 'compileall',
44+
shprint(hostpython, '-OO', '-m', 'compileall', '-q',
4345
self.ctx.get_python_install_dir(),
4446
_tail=10, _filterout="^Listing")
4547
except sh.ErrorReturnCode:

pythonforandroid/bootstraps/webview/build/build.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22

33
from __future__ import print_function
44

5-
from os.path import dirname, join, isfile, realpath, relpath, split, exists
6-
from os import makedirs
75
import os
8-
import tarfile
9-
import time
10-
import subprocess
6+
import re
117
import shutil
12-
from zipfile import ZipFile
8+
import subprocess
139
import sys
14-
import re
15-
10+
import tarfile
11+
import time
1612
from fnmatch import fnmatch
13+
from os import makedirs
14+
from os.path import dirname, join, isfile, realpath, relpath, split, exists
15+
from zipfile import ZipFile
1716

1817
import jinja2
1918

@@ -206,7 +205,7 @@ def compile_dir(dfn):
206205

207206
return # Currently leaving out the compile to pyo step because it's somehow broken
208207
# -OO = strip docstrings
209-
subprocess.call([PYTHON, '-OO', '-m', 'compileall', '-f', dfn])
208+
subprocess.call([PYTHON, '-OO', '-m', 'compileall', '-f', '-q', dfn])
210209

211210

212211
def make_package(args):

0 commit comments

Comments
 (0)