Commit 6e1243b3 authored by rusty1s's avatar rusty1s
Browse files

read python executable

parent ba1f449f
import sys
import os
import shutil
import subprocess
......@@ -16,7 +17,7 @@ extra_objects = []
with_cuda = False
if torch.cuda.is_available():
subprocess.call('./build.sh')
subprocess.call('./build.sh {}'.format(sys.executable))
headers += ['torch_spline_conv/src/cuda.h']
sources += ['torch_spline_conv/src/cuda.c']
......
......@@ -2,7 +2,8 @@
echo "Compiling kernel..."
TORCH=$(python -c "import os; import torch; print(os.path.dirname(torch.__file__))")
PYTHON=${1:-python}
TORCH=$($PYTHON -c "import os; import torch; print(os.path.dirname(torch.__file__))")
SRC_DIR=torch_spline_conv/kernel
BUILD_DIR=torch_spline_conv/build
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment