public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch V3] BaseTools: Add python3-distutils Ubuntu package checking
@ 2019-02-28 13:19 Feng, Bob C
  2019-02-28 13:29 ` Feng, Bob C
  2019-02-28 15:49 ` Carsey, Jaben
  0 siblings, 2 replies; 4+ messages in thread
From: Feng, Bob C @ 2019-02-28 13:19 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 | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/BaseTools/Tests/RunTests.py b/BaseTools/Tests/RunTests.py
index 0dd65632d0..356c1d600c 100644
--- a/BaseTools/Tests/RunTests.py
+++ b/BaseTools/Tests/RunTests.py
@@ -17,10 +17,17 @@
 #
 import os
 import sys
 import unittest
 
+try:
+    import distutils.util
+except ModuleNotFoundError:
+    sys.exit('''
+Python reported: "No module named 'distutils.uitl'"
+''')
+
 import TestTools
 
 def GetCTestSuite():
     import CToolsTests
     return CToolsTests.TheTestSuite()
-- 
2.20.1.windows.1



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

end of thread, other threads:[~2019-02-28 15:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-28 13:19 [Patch V3] BaseTools: Add python3-distutils Ubuntu package checking Feng, Bob C
2019-02-28 13:29 ` Feng, Bob C
2019-02-28 13:49   ` Philippe Mathieu-Daudé
2019-02-28 15:49 ` Carsey, Jaben

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