Skip to content

Commit 3ca31a1

Browse files
committed
resolve ubuntu failure
1 parent e6c8613 commit 3ca31a1

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

environment_setup/setup_software.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ print_status_msg "Done setting up cross compiler for robot software"
192192

193193
print_status_msg "Setting Up Python Development Headers"
194194
install_python_dev_cross_compile_headers $arch
195+
install_python_toolchain_headers
195196
print_status_msg "Done Setting Up Python Development Headers"
196197

197198
print_status_msg "Setting Up PlatformIO"

environment_setup/setup_software_mac.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ install_cross_compiler_mac
8888
print_status_msg "Done setting up cross compiler for robot software"
8989

9090
print_status_msg "Setting Up Python Development Headers"
91-
install_python_toolchain_headers_macos
91+
install_python_toolchain_headers
9292
print_status_msg "Done Setting Up Python Development Headers"
9393

9494
print_status_msg "Granting Permissions to /opt/tbotspython"

environment_setup/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ install_python_dev_cross_compile_headers() {
169169
rm -rf /tmp/tbots_download_cache/python-3.12.0.tar.xz
170170
}
171171

172-
install_python_toolchain_headers_macos() {
172+
install_python_toolchain_headers() {
173173
sudo mkdir -p /opt/tbotspython/py_headers/include/
174174
sudo ln -sfn "$(python3.12-config --includes | awk '{for(i=1;i<=NF;++i) if ($i ~ /^-I/) print substr($i, 3)}' | head -n1)" /opt/tbotspython/py_headers/include/
175175
}

src/MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ new_local_repository(
294294
new_local_repository(
295295
name = "py_cc_toolchain_for_k8_jetson_nano_cross_compile",
296296
build_file = "@//extlibs:py_cc_toolchain.BUILD",
297-
path = "/opt/tbotspython/py_headers/include/python3.12/",
297+
path = "/opt/tbotspython/cross_compile_headers/include/python3.12/",
298298
)
299299

300300
##############################################

0 commit comments

Comments
 (0)