Commit 649fc797 authored by Boxiang Sun's avatar Boxiang Sun Committed by gsamain

Let the python path as parameter

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