From ec8d11768291aa3883ed428daa14993609d760d6 Mon Sep 17 00:00:00 2001 From: pmp-p Date: Fri, 20 Sep 2024 16:03:31 +0200 Subject: [PATCH] bump sdk --- .github/workflows/ci.yml | 2 +- scripts/build-loader.sh | 2 +- src/pygbag/support/cross/aio/pep0723.py | 23 +++++++++++++---------- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef990eb..fd5cf32 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,7 @@ jobs: build: runs-on: ubuntu-22.04 env: - SDK_VERSION: 3.1.66.2bi + SDK_VERSION: 3.1.68.0bi SYS_PYTHON: /usr/bin/python3 PACKAGES: emsdk hpy pygame BUILD_STATIC: emsdk hpy diff --git a/scripts/build-loader.sh b/scripts/build-loader.sh index c352feb..1c08276 100755 --- a/scripts/build-loader.sh +++ b/scripts/build-loader.sh @@ -18,7 +18,7 @@ then fi fi -ln -sf $(pwd)/src/pygbag $(pwd)/pygbag +# [ -L $(pwd)/pygbag ] || -sf $(pwd)/src/pygbag $(pwd)/pygbag pushd src/pygbag/support cp -r _xterm_parser ${SDKROOT}/prebuilt/emsdk/common/site-packages/ diff --git a/src/pygbag/support/cross/aio/pep0723.py b/src/pygbag/support/cross/aio/pep0723.py index e676078..c54d84f 100644 --- a/src/pygbag/support/cross/aio/pep0723.py +++ b/src/pygbag/support/cross/aio/pep0723.py @@ -140,6 +140,9 @@ def install(pkg_file, sconf=None): from installer import install from installer.destinations import SchemeDictionaryDestination from installer.sources import WheelFile + if pkg_file in HISTORY: + print(f"# 144: install: {pkg_file} already installed") + return # Handler for installation directories and writing into them. destination = SchemeDictionaryDestination( @@ -161,11 +164,11 @@ def install(pkg_file, sconf=None): if pkg_file not in HISTORY: HISTORY.append(pkg_file) importlib.invalidate_caches() - print(f"142: {pkg_file} installed") + print(f"# 166: {pkg_file} installed") except FileExistsError as ex: - print(f"38: {pkg_file} already installed (or partially)", ex) + print(f"# 160: {pkg_file} already installed (or partially)", ex) except Exception as ex: - pdb(f"82: cannot install {pkg_file}") + pdb(f"# 170: cannot install {pkg_file}") sys.print_exception(ex) @@ -226,7 +229,7 @@ async def async_repos(): rewritecdn = "http://localhost:8000/archives/repo/" if rewritecdn: - print(f"""230: {rewritecdn=}""") + print(f"# 231: {rewritecdn=}") for idx, repo in enumerate(Config.pkg_repolist): repo["-CDN-"] = rewritecdn @@ -303,10 +306,8 @@ async def pip_install(pkg, sysconf={}): global sconf if pkg in Config.Requires_Failures: return - if pkg in HISTORY: - return - print("282: searching", pkg) + #print("282: searching", pkg) if not sysconf: sysconf = sconf @@ -316,10 +317,12 @@ async def pip_install(pkg, sysconf={}): # hack for WASM wheel repo if pkg.lower() in Config.mapping: pkg = Config.mapping[pkg.lower()] - if pkg in HISTORY: - return print("294: package renamed to", pkg) + if pkg in HISTORY: + print(f"# 322: pip_install: {pkg} already installed") + return + if pkg in platform.patches: if not pkg in PATCHLIST: PATCHLIST.append(pkg) @@ -350,9 +353,9 @@ async def pip_install(pkg, sysconf={}): if wheel_url: try: wheel_pkg, wheel_hash = wheel_url.rsplit("/", 1)[-1].split("#", 1) - await install_pkg(sysconf, wheel_url, wheel_pkg) if pkg not in HISTORY: HISTORY.append(pkg) + await install_pkg(sysconf, wheel_url, wheel_pkg) return True except Exception as e: print("324: INVALID", pkg, "from", wheel_url, e)