From 593738f8d45e3e348f80f36595feccecea9b1b1e Mon Sep 17 00:00:00 2001 From: Steve Pham <82231385+spham-amzn@users.noreply.github.com> Date: Thu, 15 Feb 2024 08:12:20 -0800 Subject: [PATCH] Restore testing of linux aarch64 package Signed-off-by: Steve Pham <82231385+spham-amzn@users.noreply.github.com> --- package-system/python/Dockerfile | 4 +++- package-system/python/build_config.json | 1 + package-system/python/quick_validate_python.py | 9 +++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/package-system/python/Dockerfile b/package-system/python/Dockerfile index 6ad80c0f..60b66c87 100644 --- a/package-system/python/Dockerfile +++ b/package-system/python/Dockerfile @@ -38,7 +38,7 @@ RUN apt-get clean && apt-get update # Setup time zone and locale data (necessary for SSL and HTTPS packages) RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata locales keyboard-configuration -# Install the development packages needed to build AWS Gamelift +# Install the development packages needed to build python RUN apt-get install -y autoconf \ build-essential \ cmake \ @@ -49,6 +49,8 @@ RUN apt-get install -y autoconf \ liblzma-dev \ libreadline-dev \ libtool \ + python3-dev \ + python3.10-dev \ python3 \ tcl8.6-dev \ tk8.6-dev \ diff --git a/package-system/python/build_config.json b/package-system/python/build_config.json index b889c448..47ff242a 100644 --- a/package-system/python/build_config.json +++ b/package-system/python/build_config.json @@ -43,6 +43,7 @@ "./package-linux.sh" ], "custom_test_cmd": [ + "./test-linux.sh" ] } } diff --git a/package-system/python/quick_validate_python.py b/package-system/python/quick_validate_python.py index a8ea0743..d27b802f 100644 --- a/package-system/python/quick_validate_python.py +++ b/package-system/python/quick_validate_python.py @@ -8,15 +8,24 @@ # this script is run on built python executables to make sure they function. +print("Simple import validation started") + import sys try: + print("import tkinter") import tkinter + print("import ssl") import ssl + print("import sqlite3") import sqlite3 + print("import encodings") import encodings + print("import tarfile") import tarfile + print("import lzma") import lzma + print("import bz2") import bz2 except Exception as e: print("Failed: " + e)