From cf27f81a88f9c5b51e6da95b9db0ed7ed56ac0cb Mon Sep 17 00:00:00 2001 From: Brian Warner <warner@lothar.com> Date: Tue, 16 Sep 2008 22:17:25 -0700 Subject: [PATCH] misc/check-build.py: ignore the 'Downloading file:..' line that occurs for the setup_requires= -triggered handling of the setuptools egg --- misc/check-build.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/misc/check-build.py b/misc/check-build.py index 1e6e9c54..1b789929 100644 --- a/misc/check-build.py +++ b/misc/check-build.py @@ -8,10 +8,16 @@ good = True build_out = sys.argv[1] mode = sys.argv[2] +print + for line in open(build_out, "r"): - if mode == "no-downloads" and "downloading" in line.lower(): - print line, - good = False + if mode == "no-downloads": + # when setup_requires= uses misc/dependencies/setuptools-0.6c8.egg, + # it causes a "Downloading: misc/dependencies/.." line to be emitted, + # which doesn't count as a network download. + if line.startswith("Reading ") or line.startswith("Downloading http:"): + print line, + good = False if good: if mode == "no-downloads": print "Good: build did not try to download any files" -- 2.45.2