Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
649fc797
Commit
649fc797
authored
Dec 31, 2018
by
Boxiang Sun
Committed by
gsamain
Jul 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let the python path as parameter
parent
30803f41
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
nogil_test/basic_test.py
nogil_test/basic_test.py
+2
-2
nogil_test/lwan_coro_test.py
nogil_test/lwan_coro_test.py
+3
-3
No files found.
nogil_test/basic_test.py
View file @
649fc797
...
...
@@ -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
:
...
...
nogil_test/lwan_coro_test.py
View file @
649fc797
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment