INNER CODE UNIT · Python

compile

biowasm/biowasm · bin/compile.py:69

def compile(tool, versions=[], level=0):
	"""
	Compile one tool, multiple versions
	"""
	global LEVEL
	LEVEL = level

	# Get tool info
	tool_info = next(t for t in CONFIG["tools"] if t["name"] == tool)
	files = tool_info["files"] if "files" in tool_info else ["js", "wasm"]
	programs = tool_info["programs"] if "programs" in tool_info else [tool]
	versions = [v for v in tool_info["versions"] if v["version"] in versions] if versions else tool_info["versions"]
	tool_git_path = f"tools/{tool}/src/"

	# Validate
	if len(versions) == 0:
		print(f"No valid versions found in biowasm.json for {tool}. Make sure versions don't start with 'v'.")
		exit(1)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…