mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 02:24:30 +00:00
local ifctester wheel build
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user