Skip to content

Commit 090d0fc

Browse files
authored
Implement LZMA support check in platform.py
1 parent c0398d6 commit 090d0fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

platform.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
# LZMA support check
16+
try:
17+
import lzma
18+
except ImportError:
19+
print("ERROR: LZMA module is not available in this Python installation.")
20+
print("LZMA support is required for tool / toolchain installation.")
21+
print("Please install Python with LZMA support.")
22+
import sys
23+
sys.exit(1)
24+
1525
import fnmatch
1626
import os
1727
import json

0 commit comments

Comments
 (0)