Created
August 3, 2017 19:56
-
-
Save djungelorm/7e841a0791573b6abf5f7962e58a0a2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/build/python.bzl b/tools/build/python.bzl | |
index 1fabdf4..dbcf603 100644 | |
--- a/tools/build/python.bzl | |
+++ b/tools/build/python.bzl | |
@@ -14,10 +14,10 @@ def _create_py_env(out, install): | |
tmp = out+'.tmp-create-py-env.$$' | |
cmds = [ | |
'rm -rf %s' % tmp, | |
- 'virtualenv %s --quiet --never-download --no-site-packages' % tmp | |
+ 'virtualenv %s --never-download --no-site-packages' % tmp | |
] | |
for lib in install: | |
- cmds.append('CFLAGS="-O0" %s/bin/python %s/bin/pip install --quiet --no-deps %s' % (tmp, tmp, lib.path)) | |
+ cmds.append('CFLAGS="-O0" %s/bin/python %s/bin/pip install --no-deps %s' % (tmp, tmp, lib.path)) | |
cmds.extend([ | |
'(CWD=`pwd`; cd %s; tar -c -f $CWD/%s *)' % (tmp, out) | |
]) | |
@@ -61,7 +61,7 @@ def _sdist_impl(ctx): | |
# Run setup.py sdist from the staging directory | |
sub_commands = [ | |
- '(cd %s ; BAZEL_BUILD=1 python setup.py --quiet sdist --formats=zip)' % staging_dir_path, | |
+ '(cd %s ; BAZEL_BUILD=1 python setup.py sdist --formats=zip)' % staging_dir_path, | |
'cp %s/dist/*.zip %s' % (staging_dir_path, output.path) | |
] | |
ctx.action( | |
@@ -126,9 +126,9 @@ py_script = rule( | |
) | |
def _test_impl(ctx, pyexe='python2'): | |
- sub_commands = ['virtualenv env --quiet --never-download --no-site-packages --python=%s' % pyexe] | |
+ sub_commands = ['virtualenv env --never-download --no-site-packages --python=%s' % pyexe] | |
for dep in ctx.files.deps: | |
- sub_commands.append('env/bin/python env/bin/pip install --quiet --no-deps %s' % dep.short_path) | |
+ sub_commands.append('env/bin/python env/bin/pip install --no-deps %s' % dep.short_path) | |
sub_commands.extend([ | |
'unzip -o %s' % (ctx.file.src.short_path), #TODO: install the package then run the tests?? | |
'(cd %s ; ../env/bin/python setup.py test)' % ctx.attr.pkg | |
@@ -206,9 +206,9 @@ def _lint_impl(ctx): | |
sub_commands = [] | |
# Install dependences in a new virtual env | |
- sub_commands = ['virtualenv env --quiet --never-download --no-site-packages'] | |
+ sub_commands = ['virtualenv env --never-download --no-site-packages'] | |
for dep in deps: | |
- sub_commands.append('env/bin/python env/bin/pip install --quiet --no-deps %s' % dep.short_path) | |
+ sub_commands.append('env/bin/python env/bin/pip install --no-deps %s' % dep.short_path) | |
# Run pep8 | |
runfiles_dir = out.path + '.runfiles/krpc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment