interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / mk / python-u64.mk

18 lines · 1156 bytes Raw Blame History
1# #627 Python lane (translation-compose-v1): python-explicit-u64-pure-v1 importer/exporter. Author self-test only.
2# SA_SEED_REPO: local clone holding the pinned bridge commit 0fc7d866 (tools/source-aware/build).
3# PY_SA_ROOT: checkout whose tools/source-aware/sa is the reference #621 codec (default: this tree, built here);
4# PY_C_IMPORT: the C importer used for F1 links and C->Python (default: this tree's build/L589/c-import, built here).
5# PY_C_EXPORT: optional translation-v1 section 6 exporter CLI; empty = Python->C NOT_RUN.
6SA_SEED_REPO ?= $(HOME)/workspace/omega-bridge
7PY_SA_ROOT ?= $(CURDIR)
8PY_C_IMPORT ?= $(CURDIR)/build/L589/c-import
9PY_C_EXPORT ?=
10export SA_SEED_REPO
11.PHONY: python-u64 test-python-u64
12python-u64:
13 python3 tools/adapters/build-python-import.py
14 python3 tools/adapters/build-python-export.py
15test-python-u64: python-u64
16 $(MAKE) -f mk/source-aware.mk source-aware
17 $(MAKE) -f mk/c-u64-import.mk c-u64-import
18 python3 tests/universal/translation/python_selftest.py --sa-root $(PY_SA_ROOT) --c-import $(PY_C_IMPORT) --c-export '$(PY_C_EXPORT)' --out build/L627/selftest-$$(python3 -c 'import uuid; print(uuid.uuid4().hex)')