Author: Armin Rigo <[email protected]>
Branch:
Changeset: r76734:1777aca640dd
Date: 2015-04-07 09:44 +0000
http://bitbucket.org/pypy/pypy/changeset/1777aca640dd/
Log: Silence an error message that is expected
diff --git a/pypy/tool/release/package.py b/pypy/tool/release/package.py
--- a/pypy/tool/release/package.py
+++ b/pypy/tool/release/package.py
@@ -65,8 +65,11 @@
add --without-{0} option to skip packaging binary CFFI
extension.""".format(module)
raise MissingDependenciesError(module)
-def pypy_runs(pypy_c):
- return subprocess.call([str(pypy_c), '-c', 'pass']) == 0
+def pypy_runs(pypy_c, quiet=False):
+ kwds = {}
+ if quiet:
+ kwds['stderr'] = subprocess.PIPE
+ return subprocess.call([str(pypy_c), '-c', 'pass'], **kwds) == 0
def create_package(basedir, options):
retval = 0
@@ -108,7 +111,7 @@
# check that this libpypy_c is really needed
os.rename(str(libpypy_c), str(libpypy_c) + '~')
try:
- if pypy_runs(pypy_c):
+ if pypy_runs(pypy_c, quiet=True):
raise Exception("It seems that %r runs without needing %r. "
"Please check and remove the latter" %
(str(pypy_c), str(libpypy_c)))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit