Commit b847bc56 authored by Boxiang Sun's avatar Boxiang Sun Committed by gsamain

Build the extension in slapos instead in the test file

parent a61e1981
...@@ -3,7 +3,8 @@ import importlib ...@@ -3,7 +3,8 @@ import importlib
import json import json
def run(env): def run(env):
subprocess.call(['python3', 'nogil_extension.py', 'build_ext', '--inplace'], env=env) # Build the extension when installing the Cython in slapos
# subprocess.call(['python3', 'nogil_extension.py', 'build_ext', '--inplace'], env=env)
source = '' source = ''
failure_count = 0 failure_count = 0
try: try:
......
...@@ -3,7 +3,8 @@ import importlib ...@@ -3,7 +3,8 @@ import importlib
import sys import sys
def build_ext(env): def build_ext(env):
subprocess.check_output(['python3', 'setup.py', 'build_ext', '--inplace'], cwd='./cython_lwan_coro/', env=env) # Build the cython_lwan_coro when installing it in slapos
# subprocess.check_output(['python3', 'setup.py', 'build_ext', '--inplace'], cwd='./cython_lwan_coro/', env=env)
source = '' source = ''
failure_count = 0 failure_count = 0
try: try:
......
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