Skip to content

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pyodide Test Wheels

This repository hosts WebAssembly (WASM) wheels for the ifcopenshell library, optimized for use with Pyodide.

Purpose

The purpose of this repository is to provide a centralized, publicly accessible source for ifcopenshell wheels, allowing users to install them via URL without needing to host the files themselves. After PEP783 will be accepted, we'll be able to move those wheels to PyPI.

Available Wheels

The repository contains several versions of ifcopenshell wheels compiled for Pyodide/WASM. An auto-generated index of available wheels is available at: https://ifcopenshell.github.io/wasm-wheels/

Installation in Pyodide

To install a wheel in Pyodide:

import micropip
await micropip.install("https://ifcopenshell.github.io/wasm-wheels/ifcopenshell-0.8.3+34a1bc6-cp313-cp313-emscripten_4_0_9_wasm32.whl")

Replace the URL with the desired wheel filename from the index.

Generating the index locally

python -m pip install -r requirements.txt
python -m unittest -v
python generate_index.py > index.html

The index lists wheels in one table with a version column. Only modular wheel directories get a parent row and indented entries. Download URLs retain the full relative path, so nested wheels with the same filename remain distinct. The Pages workflow copies all wheels recursively with the same directory structure.

Alternatives Considered

Other hosting options were considered:

  • Raw files from GitHub repository commits: Do not serve proper CORS headers.
  • Files in GitHub Releases: Do not serve proper CORS headers.

GitHub Pages was chosen as it automatically includes Access-Control-Allow-Origin: * headers, enabling cross-origin requests required for Pyodide installations.

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages