From 4ac1faeebfd4d7b820f414f97f4401ee978f7d4d Mon Sep 17 00:00:00 2001 From: Pierre Moulon Date: Mon, 18 Dec 2023 14:43:11 -0800 Subject: [PATCH] {Build} Python - Stubs - creating expected missing folder Summary: The expected folder `projectaria_tools-stubs/projectaria_tools/projects/` was not longer existing dues to some recent refactoring. We are here creating it so copy can happen without issues. Reviewed By: chpeng-fb Differential Revision: D52267784 fbshipit-source-id: e438675039a5587e014dbbebedf4151882d12e75 --- generate_stubs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate_stubs.py b/generate_stubs.py index 888b6bfa0..c9bfbf25c 100644 --- a/generate_stubs.py +++ b/generate_stubs.py @@ -20,7 +20,7 @@ if system == "Linux": command = "sed" -# replace _core_pybinds, etc with projectara_tools +# replace _core_pybinds, etc with projectaria_tools replace_core_pybinds = f"find projectaria_tools-stubs/ -name '*.pyi' | xargs {command} -i 's/_core_pybinds/projectaria_tools.core/g'" replace_adt_pybinds = f"find projectaria_tools-stubs/ -name '*.pyi' | xargs {command} -i 's/_adt_pybinds/projectaria_tools.project.adt/g'" replace_ase_pybinds = f"find projectaria_tools-stubs/ -name '*.pyi' | xargs {command} -i 's/_ase_pybinds/projectaria_tools.project.ase/g'" @@ -31,6 +31,7 @@ "cp -r projectaria_tools-stubs/_core_pybinds/* projectaria_tools-stubs/projectaria_tools/core/", "rm -r projectaria_tools-stubs/_core_pybinds", "pybind11-stubgen _adt_pybinds -o projectaria_tools-stubs --ignore-all-errors", + "mkdir -p projectaria_tools-stubs/projectaria_tools/projects/", "mv projectaria_tools-stubs/_adt_pybinds.pyi projectaria_tools-stubs/projectaria_tools/projects/adt.pyi", "pybind11-stubgen _ase_pybinds -o projectaria_tools-stubs --ignore-all-errors", "mv projectaria_tools-stubs/_ase_pybinds.pyi projectaria_tools-stubs/projectaria_tools/projects/ase.pyi",