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

Improve the cython buildout

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