Skip to content

Build python#32

Open
qianxichen233 wants to merge 7 commits intomainfrom
build-python
Open

Build python#32
qianxichen233 wants to merge 7 commits intomainfrom
build-python

Conversation

@qianxichen233
Copy link
Contributor

@qianxichen233 qianxichen233 commented Jan 4, 2026

working python build script, not refined.

Update 1/23/25: Python has been built statically. It can import libraries that doesn't require dlopen. Tested with simple programs. Next step is to build Python with modules and with dynamic loading (Issue #40)

Update as of 2/26/25:
As of now, we have build_python_wasm.sh which does static build as well as installs the python within lindfs.
build_shared_python_wasm.sh uses the object files created in the static build process to create the shared python build. This shared python wasm binary is copied to lindfs/bin.

cd cpython
./build_python_wasm.sh
./build_shared_python_wasm.sh

Tested with 2 or 3 sample python programs.

To be decided:

  • If we should keep both static and dynamic python binary in lindfs or not. Also should decide which folders we want them in. make install copies the static binary to lindfs/usr/local/bin. While the shared python build script currently copies dynamic binary to lindfs/bin
  • Does we need both .wasm and .cwasm binaries within lindfs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants