From f326a1e77c5d42a1365e0282ac8a63765febc065 Mon Sep 17 00:00:00 2001 From: Aaron <29749331+aarnphm@users.noreply.github.com> Date: Tue, 28 Feb 2023 03:44:58 -0800 Subject: [PATCH] chore: make sure to init when building from sdist Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- pyproject.toml | 2 +- setup.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index c84716d..3abe593 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ description = "whispercpp: Pybind11 bindings for whisper.cpp" readme = { file = "README.md", content-type = "text/markdown" } license = { text = "Apache-2.0" } requires-python = ">=3.8" -version = "0.0.4" +version = "0.0.5" classifiers = [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", diff --git a/setup.py b/setup.py index 2977635..2d5b1b6 100644 --- a/setup.py +++ b/setup.py @@ -8,6 +8,7 @@ def update_submodules(directory: str): + check_output(["git", "init"]) check_output(["git", "submodule", "sync", "--recursive"], cwd=directory) check_output(["git", "submodule", "update", "--init", "--recursive"], cwd=directory)