Commit 25f222a1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent c5abcd3f
......@@ -19,6 +19,7 @@ setup-eggs =
setuptools-dso
gevent
# gpython program
[gpython]
recipe = zc.recipe.egg:scripts
eggs = ${pygolang:egg}
......@@ -26,9 +27,35 @@ scripts = gpython
# convenience for gpython users
exe = ${buildout:bin-directory}/gpython
# python-interpreter provides python interpreter with all specified eggs.
# eggs default to pygolang, but can be overwritten or changed in inherited section.
# if eggs are changes, they must still have pygolang.
[python-interpreter]
recipe = zc.recipe.egg:scripts
eggs = ${pygolang:egg}
interpreter = python
# interpreter code that buildout generates cannot process `-m pytest --<pytest-option>`
# -> use pymain from gpython to workaround that.
initialization =
# set sys.executable to self, so that subprocess and friends go through us
# and this way spawn children with correct sys.path where all eggs that
# parent have are present. TODO consider migrating this into pymain
sys.executable = sys.argv[0]
# tail to pymain
from gpython import pymain
pymain(sys.argv[1:])
sys.exit(0)
# don't install scripts from listed eggs (avoid conflict with other sections
# that use zc.recipe.egg with eggs overlapping with ${:eggs} - ex neoppod)
# (we cannot use zc.recipe.egg:eggs because interpreter does not work there)
# NOTE with scripts=ø interpreter is not handled, so we use `scripts=python` as
# a workaround.
scripts = ${:interpreter}
[versions]
pygolang = 0.0.7.post1
#pygolang = 0.0.7.post1 XXX reactivate
pygolang = 0.0.7
setuptools-dso = 1.7
gevent = 20.9.0
Importing = 1.10
......
......@@ -24,26 +24,13 @@ parts =
# python interpreter with wendelin.core and all other eggs.
# cannot adjust wendelin.core-dev because :interpreter does not work for zc.recipe.egg:develop
[wendelin.core-python]
recipe = zc.recipe.egg:scripts
eggs =
<= python-interpreter
eggs =
wendelin.core[test]
pygolang[pyx.build]
neoppod[tests]
ZEO[test]
interpreter = python
# interpreter code that buildout generates cannot process `-m pytest --<pytest-option>`
# -> use pymain from gpython to workaround that
initialization =
from gpython import pymain
pymain(sys.argv[1:])
sys.exit(0)
# don't install scripts from listed eggs (avoid conflict with neoppod)
# (we cannot use zc.recipe.egg:eggs because interpreter does not work there)
# NOTE with scripts=ø interpreter is not handled, so we use `scripts=python` as
# a workaround.
scripts = python
# env.sh for that python + go to be on $PATH
[wendelin.core-env.sh]
......
......@@ -21,15 +21,8 @@ parts =
# bin/python is preinstalled with sys.path to zodbtools & friends.
[zodbtools-python]
recipe = zc.recipe.egg:scripts
eggs = zodbtools[test]
interpreter = python
# interpreter code that buildout generates cannot process `-m pytest --<pytest-option>`
# -> use pymain from gpython to workaround that
initialization =
from gpython import pymain
pymain(sys.argv[1:])
sys.exit(0)
<= python-interpreter
eggs = zodbtools[test]
# env.sh for zodbtools's python to be on $PATH.
[zodbtools-env.sh]
......
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