Skip to content

Commit 413c626

Browse files
larryliu0820facebook-github-bot
authored andcommitted
Fix CI job
Summary: Apparently in macos CI, python3 and python are pointing to different python environment. python3 -> /Library/Python/3.9/site-packages/ python -> /Users/ec2-user/runner/_work/_temp/miniconda/lib/python3.9/site-packages This diff is fixing the CI failure: ``` [2023-08-17T02:59:12.739+00:00] Local command: env -- "ASAN_OPTIONS=detect_leaks=0,detect_odr_violation=0" "GEN_DIR=GEN_DIR_DEPRECATED" "OUT=././../out" "SRCDIR=./." "SRCS=././link_torch.sh" /usr/bin/env bash -e buck-out/v2/gen/root/213ed1b7ab869379/third-party/__libtorch_gen__/sh/genrule.sh [2023-08-17T02:59:12.739+00:00] Stdout: Error: /Library/Python/3.9/site-packages/torch/lib/libtorch.dylib doesn't exist ``` Differential Revision: D48423480 fbshipit-source-id: 99a2c1b4365b7e989930e8ace85b45ccbbaeff6f
1 parent 3644b60 commit 413c626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

third-party/link_torch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ while getopts ":o:f:" opt; do
3333
esac
3434
done
3535

36-
LIB=$(python3 -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')
36+
LIB=$(python -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())')
3737

3838
# delimiter ,
3939
export IFS=","

0 commit comments

Comments
 (0)