public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch] BaseTools: Add python3-distutils Ubuntu package checking
@ 2019-02-26  1:05 Feng, Bob C
  2019-02-27  8:07 ` Ard Biesheuvel
  0 siblings, 1 reply; 6+ messages in thread
From: Feng, Bob C @ 2019-02-26  1:05 UTC (permalink / raw)
  To: edk2-devel; +Cc: Bob Feng, Liming Gao

https://bugzilla.tianocore.org/show_bug.cgi?id=1509

Add python3-distutils Ubuntu package checking.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
---
 BaseTools/Tests/RunTests.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/BaseTools/Tests/RunTests.py b/BaseTools/Tests/RunTests.py
index 0dd65632d0..64778db981 100644
--- a/BaseTools/Tests/RunTests.py
+++ b/BaseTools/Tests/RunTests.py
@@ -17,10 +17,24 @@
 #
 import os
 import sys
 import unittest
 
+distutils_exist = True
+try:
+    import distutils.util
+except:
+    distutils_exist = False
+
+if not distutils_exist:
+    print("""
+python3-distutil packages is missing. Please install it with the following command:
+
+bash$ sudo apt-get install python3-distutil
+""")
+    sys.exit(-1)
+
 import TestTools
 
 def GetCTestSuite():
     import CToolsTests
     return CToolsTests.TheTestSuite()
-- 
2.20.1.windows.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-27 12:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-26  1:05 [Patch] BaseTools: Add python3-distutils Ubuntu package checking Feng, Bob C
2019-02-27  8:07 ` Ard Biesheuvel
2019-02-27  8:26   ` Leif Lindholm
2019-02-27  8:52     ` Feng, Bob C
2019-02-27  8:59       ` Leif Lindholm
2019-02-27 12:38       ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox