Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
slapos
Commits
648c6893
Commit
648c6893
authored
Nov 28, 2018
by
Boxiang Sun
Committed by
gsamain
Feb 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build Cython nogil extension right after the Cython build
parent
fb69d855
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
component/cython_nogil/buildout.cfg
component/cython_nogil/buildout.cfg
+1
-1
software/cython_test/buildout.hash.cfg
software/cython_test/buildout.hash.cfg
+1
-1
software/cython_test/runTestSuite.in
software/cython_test/runTestSuite.in
+2
-4
No files found.
component/cython_nogil/buildout.cfg
View file @
648c6893
...
@@ -15,4 +15,4 @@ repository = https://lab.nexedi.com/Daetalus/cython.git
...
@@ -15,4 +15,4 @@ repository = https://lab.nexedi.com/Daetalus/cython.git
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
git-binary = ${git:location}/bin/git
git-binary = ${git:location}/bin/git
python3-binary = ${python3.5:location}/bin/python3
python3-binary = ${python3.5:location}/bin/python3
command = (${:git-binary} clone --quiet ${:repository} ${:location} && cd ${:location} && ${:git-binary} checkout nogil_extension && ${:python3-binary} setup.py install)
command = (${:git-binary} clone --quiet ${:repository} ${:location} && cd ${:location} && ${:git-binary} checkout nogil_extension && ${:python3-binary} setup.py install && ${:python3-binary} test.py build_ext --inplace)
\ No newline at end of file
\ No newline at end of file
software/cython_test/buildout.hash.cfg
View file @
648c6893
...
@@ -19,4 +19,4 @@ md5sum = a040b6e2323571de98606f5724246831
...
@@ -19,4 +19,4 @@ md5sum = a040b6e2323571de98606f5724246831
[template-runTestSuite]
[template-runTestSuite]
filename = runTestSuite.in
filename = runTestSuite.in
md5sum =
dd91f4f08a08f7d3e42857e4a85841f6
md5sum =
29ed45638baec61ae623f2c65eedc162
software/cython_test/runTestSuite.in
View file @
648c6893
...
@@ -44,14 +44,11 @@ def main():
...
@@ -44,14 +44,11 @@ def main():
# run 'python3 -c 'import test''
# run 'python3 -c 'import test''
# passed if we get 'done'
# passed if we get 'done'
# ${python3.5:location}/bin/python3
# ${python3.5:location}/bin/python3
result_string = subprocess.check_output(['${python3.5:location}/bin/python3', 'test.py', 'build_ext', '--inplace'],
cwd='${cython_nogil:location}',
env={'CI': 'true'})
result_string = check_output(['${python3.5:location}/bin/python3 -c "import test"'],
result_string = check_output(['${python3.5:location}/bin/python3 -c "import test"'],
shell=True,
shell=True,
cwd='${cython_nogil:location}',
cwd='${cython_nogil:location}',
env={'CI': 'true'})
env={'CI': 'true'})
result_dict = json.loads(result_string)
#
result_dict = json.loads(result_string)
result_failed = 0 if 'done' in result_string else 1
result_failed = 0 if 'done' in result_string else 1
# for result in result_dict['tests']:
# for result in result_dict['tests']:
test_line_dict['%s: %s' % ('Cython test', 'basic test')] = {
test_line_dict['%s: %s' % ('Cython test', 'basic test')] = {
...
@@ -83,6 +80,7 @@ def main():
...
@@ -83,6 +80,7 @@ def main():
break
break
print 'Submitting: "%s"' % test_result_line.name
print 'Submitting: "%s"' % test_result_line.name
print test_line_dict['Cython test: basic test']
# report status back to Nexedi ERP5
# report status back to Nexedi ERP5
test_result_line.stop(**test_line_dict[test_result_line.name])
test_result_line.stop(**test_line_dict[test_result_line.name])
...
...
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