Skip to content

Commit

Permalink
{Build} Python - Stubs - creating expected missing folder
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SeaOtocinclus authored and facebook-github-bot committed Dec 18, 2023
1 parent 16878c5 commit 4ac1fae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generate_stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand All @@ -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",
Expand Down

0 comments on commit 4ac1fae

Please sign in to comment.