Skip to content

Commit dbb7996

Browse files
committed
fix: pin hatch-cpp<0.3, remove bash -c from build:cpp for Windows compat
1 parent 0311541 commit dbb7996

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

cpp/pyproject.toml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"hatchling",
4-
"hatch-cpp",
4+
"hatch-cpp<0.3",
55
"pybind11",
66
]
77
build-backend="hatchling.build"
@@ -40,7 +40,7 @@ develop = [
4040
"check-manifest",
4141
"cibuildwheel",
4242
"codespell>=2.4,<2.5",
43-
"hatch-cpp",
43+
"hatch-cpp<0.3",
4444
"hatchling",
4545
"mdformat>=0.7.22,<1.1",
4646
"mdformat-tables>=1",

cppjswasm/js/package.json.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"access": "public"
2727
},
2828
"scripts": {
29-
"build:cpp": "bash -c 'if [ -f ../emsdk/emsdk_env.sh ]; then source ../emsdk/emsdk_env.sh 2>/dev/null; fi && mkdir -p dist/pkg && em++ -O2 -std=c++17 -s WASM=1 -s MODULARIZE=1 -s EXPORT_ES6=1 -s SINGLE_FILE=1 -s ALLOW_MEMORY_GROWTH=1 -s ENVIRONMENT=web,worker --bind -I ../cpp ../cpp/{{project_name_formatted}}/example.cpp src/cpp/bindings.cpp -o dist/pkg/{{module}}.js'",
29+
"build:cpp": "node -e \"require('fs').mkdirSync('dist/pkg',{recursive:true})\" && em++ -O2 -std=c++17 -s WASM=1 -s MODULARIZE=1 -s EXPORT_ES6=1 -s SINGLE_FILE=1 -s ALLOW_MEMORY_GROWTH=1 -s ENVIRONMENT=web,worker --bind -I ../cpp ../cpp/{{project_name_formatted}}/example.cpp src/cpp/bindings.cpp -o dist/pkg/{{module}}.js",
3030
"build:debug": "node build.mjs --debug",
3131
"build:prod": "node build.mjs",
3232
"build": "npm-run-all build:cpp build:prod",

cppjswasm/pyproject.toml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
requires = [
33
"hatchling",
4-
"hatch-cpp",
4+
"hatch-cpp<0.3",
55
"hatch-js",
66
"pybind11",
77
]
@@ -42,7 +42,7 @@ develop = [
4242
"check-manifest",
4343
"cibuildwheel",
4444
"codespell>=2.4,<2.5",
45-
"hatch-cpp",
45+
"hatch-cpp<0.3",
4646
"hatch-js",
4747
"hatchling",
4848
"mdformat>=0.7.22,<1.1",

0 commit comments

Comments
 (0)