diff --git a/build.py b/build.py index a43cbabd7..00725f9a5 100644 --- a/build.py +++ b/build.py @@ -3,7 +3,6 @@ def build(setup_kwargs): subprocess.call(["make", "buzz/whisper_cpp.py"]) - subprocess.call(["make", "translation_mo"]) if __name__ == "__main__": diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ef04c4a79..c11d61038 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -117,6 +117,7 @@ parts: pip install . pip uninstall -y ctranslate2 pip install https://github.com/raivisdejus/CTranslate2-no-execstack/releases/download/v4.2.1/ctranslate2-4.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl + make translation_mo python3 build.py mkdir $CRAFT_PART_INSTALL/buzz cp $CRAFT_PART_BUILD/buzz/whisper_cpp.py $CRAFT_PART_INSTALL/buzz/