Commit 0da84b2c authored by Boxiang Sun's avatar Boxiang Sun

Improve the cython buildout

parent 46f3e095
......@@ -7,12 +7,18 @@ extends =
parts =
cython_nogil
[cython]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
repository = https://lab.nexedi.com/Daetalus/cython.git
revision = 21ffc32af0ae23a6bae2814934d16ef6853bf931
location = ${buildout:parts-directory}/${:_buildout_section_name_}
branch = nogil_extension
[cython_nogil]
recipe = plone.recipe.command
stop-on-error = true
update-command = true
repository = https://lab.nexedi.com/Daetalus/cython.git
location = ${buildout:parts-directory}/${:_buildout_section_name_}
git-binary = ${git:location}/bin/git
location = ${cython:location}
python3-binary = ${python3.5:location}/bin/python3
command = (([ -d ${:location} ] && (rm -rf ${:location}) || :) && ${: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
command = (cd ${cython:location} && ${:python3-binary} setup.py install && ${:python3-binary} test.py build_ext --inplace)
\ No newline at end of file
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