mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
build_pyodide: normalize version added to meta.yaml
Prevents error below: ``` ValueError: Version mismatch in ifcopenshell: version in meta.yaml is '0.9.0alpha0' but version from wheel name is '0.9.0a0' ```
This commit is contained in:
@@ -29,6 +29,8 @@ emcc --version
|
|||||||
|
|
||||||
mkdir -p packages/ifcopenshell
|
mkdir -p packages/ifcopenshell
|
||||||
VERSION=`cat IfcOpenShell/VERSION`
|
VERSION=`cat IfcOpenShell/VERSION`
|
||||||
|
# Normalize to the canonical PEP 440 form (e.g. 0.9.0alpha0 -> 0.9.0a0).
|
||||||
|
VERSION=`python3 -c "from packaging.version import Version; print(Version('$VERSION'))"`
|
||||||
cp IfcOpenShell/pyodide/meta.yaml packages/ifcopenshell
|
cp IfcOpenShell/pyodide/meta.yaml packages/ifcopenshell
|
||||||
sed -i s/9.9.9/$VERSION/g packages/ifcopenshell/meta.yaml
|
sed -i s/9.9.9/$VERSION/g packages/ifcopenshell/meta.yaml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user