local ifctester wheel build

This commit is contained in:
Sayan Jyoti Das
2026-03-18 10:29:09 +05:30
parent 845a13ba83
commit 47f058341b
5 changed files with 57 additions and 13 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ node_modules
dist
dist-ssr
*.local
public/worker/generated
# Editor directories and files
.vscode/*
@@ -24,4 +25,4 @@ dist-ssr
*.sw?
.claude
experiment/*
experiment/*
@@ -1,5 +1,5 @@
import config from '../../../config.json';
import hyperid from 'hyperid';
import config from '../../../config.json';
import type { AuditReportData } from "$src/types/report";
let pyodide: any = null;
@@ -83,7 +83,13 @@ async function initEnvironment() {
await pyodide.loadPackage("shapely");
// Install IfcTester
await micropip.install('ifctester');
const ifctesterManifest = await fetch('/worker/generated/ifctester.json').then((response) => {
if (!response.ok) {
throw new Error(`[worker] Failed to load IfcTester wheel manifest: ${response.status} ${response.statusText}`);
}
return response.json() as Promise<{ wheel_url: string }>;
});
await micropip.install(ifctesterManifest.wheel_url);
// Initialize IDS and API
await API.init(pyodide);