diff --git a/python/cppjswasm/Makefile.jinja b/python/cppjswasm/Makefile.jinja index c47f571..c4231ec 100644 --- a/python/cppjswasm/Makefile.jinja +++ b/python/cppjswasm/Makefile.jinja @@ -17,9 +17,7 @@ develop: develop-cpp develop-js develop-py ## setup project for development .PHONY: requirements-py requirements-js requirements-cpp requirements requirements-py: ## install prerequisite python build requirements - python -m pip install --upgrade pip toml - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + uv pip install -r pyproject.toml --extra develop requirements-js: ## install prerequisite javascript build requirements cd js; pnpm install && npx playwright install diff --git a/python/js/Makefile.jinja b/python/js/Makefile.jinja index d62b7f2..f7ba25b 100644 --- a/python/js/Makefile.jinja +++ b/python/js/Makefile.jinja @@ -11,9 +11,7 @@ develop: develop-js develop-py ## setup project for development .PHONY: requirements-py requirements-js requirements requirements-py: ## install prerequisite python build requirements - python -m pip install --upgrade pip toml - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + uv pip install -r pyproject.toml --extra develop requirements-js: ## install prerequisite javascript build requirements cd js; pnpm install && npx playwright install diff --git a/python/pure/Makefile.jinja b/python/pure/Makefile.jinja index 699682c..ee5abf7 100644 --- a/python/pure/Makefile.jinja +++ b/python/pure/Makefile.jinja @@ -7,9 +7,7 @@ develop: ## install dependencies and build library uv pip install -e .[develop] requirements: ## install prerequisite python build requirements - python -m pip install --upgrade pip toml - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + uv pip install -r pyproject.toml --extra develop build: ## build the python library python -m build -n diff --git a/python/rust/Makefile.jinja b/python/rust/Makefile.jinja index e1ebf22..29f613f 100644 --- a/python/rust/Makefile.jinja +++ b/python/rust/Makefile.jinja @@ -12,9 +12,7 @@ develop: develop-rs develop-py ## setup project for development .PHONY: requirements-py requirements-rs requirements requirements-py: ## install prerequisite python build requirements - python -m pip install --upgrade pip toml - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + uv pip install -r pyproject.toml --extra develop requirements-rs: ## install prerequisite rust build requirements make -C rust requirements diff --git a/python/rustjswasm/Makefile.jinja b/python/rustjswasm/Makefile.jinja index cefbb94..ab83bb5 100644 --- a/python/rustjswasm/Makefile.jinja +++ b/python/rustjswasm/Makefile.jinja @@ -14,9 +14,7 @@ develop: develop-rs develop-js develop-py ## setup project for development .PHONY: requirements-py requirements-js requirements-rs requirements requirements-py: ## install prerequisite python build requirements - python -m pip install --upgrade pip toml - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` - python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + uv pip install -r pyproject.toml --extra develop requirements-js: ## install prerequisite javascript build requirements cd js; pnpm install && npx playwright install