Commit 3ab559b8 authored by Boxiang Sun's avatar Boxiang Sun

Let the python path as parameter

parent 52243016
......@@ -2,9 +2,9 @@ import subprocess
import importlib
import json
def run(env):
def run(env, python_path):
# Build the extension when installing the Cython in slapos
# subprocess.call(['python3', 'nogil_extension.py', 'build_ext', '--inplace'], env=env)
# subprocess.call([python_path, 'nogil_extension.py', 'build_ext', '--inplace'], env=env)
source = ''
failure_count = 0
try:
......
......@@ -4,10 +4,10 @@ import importlib
import sys
import build_extension
def run(env):
def run(env, python_path):
# build the extension
build_extension.build_ext(env)
source = subprocess.check_output(["python3 -c 'import wrapper; wrapper.main()'"],
# build_extension.build_ext(env)
source = subprocess.check_output([python_path + " -c 'import wrapper; wrapper.main()'"],
cwd='./cython_lwan_coro/',
env=env,
shell=True,
......
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