feat: initial EcoArk HarmonyOS wheel pipeline skeleton
- wheel_pipeline.py: CLI entry point for repack/rebuild flow - pipeline/detect.py: detect pure vs native extension wheels - pipeline/repack.py: repack pure-Python wheels with harmonyos_arm64 tag - pipeline/rebuild.py: native wheel rebuild entry (stub for OHOS NDK) - pipeline/cli.py: argument parsing and orchestration - Makefile: convenience targets (repack, rebuild, clean) - README.md: documentation with usage and limitations - examples/gen_test_wheels.py: test wheel generator - output/: output directory for generated wheels
This commit is contained in:
32
Makefile
Normal file
32
Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
SHELL := /bin/bash
|
||||
|
||||
INPUT ?= examples/sample.whl
|
||||
OUTPUT ?= output
|
||||
|
||||
.PHONY: help repack rebuild native clean
|
||||
|
||||
help:
|
||||
@echo "EcoArk HarmonyOS Wheel Pipeline"
|
||||
@echo ""
|
||||
@echo "Usage:"
|
||||
@echo " make repack INPUT=path/to/pkg.whl — Repack a pure-Python wheel for HarmonyOS"
|
||||
@echo " make rebuild INPUT=path/to/pkg.whl — Trigger native rebuild entry (stub)"
|
||||
@echo " make clean — Remove output/"
|
||||
@echo ""
|
||||
@echo "Examples:"
|
||||
@echo " make repack INPUT=some_package.whl"
|
||||
@echo " make rebuild INPUT=some_native.whl"
|
||||
|
||||
repack:
|
||||
python3 wheel_pipeline.py "$(INPUT)" --output-dir "$(OUTPUT)" --force-repack
|
||||
|
||||
rebuild:
|
||||
python3 wheel_pipeline.py "$(INPUT)" --output-dir "$(OUTPUT)" --target-os harmonyos --arch arm64
|
||||
|
||||
native:
|
||||
python3 wheel_pipeline.py "$(INPUT)" --output-dir "$(OUTPUT)" --target-os harmonyos --arch arm64
|
||||
|
||||
clean:
|
||||
rm -rf "$(OUTPUT)"
|
||||
mkdir -p "$(OUTPUT)"
|
||||
touch "$(OUTPUT)/.gitkeep"
|
||||
Reference in New Issue
Block a user