WIP: Slapos.recipe.egg
I am working on the implementation of Django in Theia.
After compiling Django, it is not possible to launch a server because we need the Django Eggs in PYTHONPATH
and we cannot use the zc.recipe.egg
interpreter because we need a bash shell.
So I created a recipe that extends zc.recipe.egg
and creates a bash script. This script works exactly like activating a virtual env in python and allows you to work with Django in Theia.
I put this recipe in slapos.recipe.build
but I don't know if there is a better place. Any ideas?
The advantage is that you don't need to create an instance to use Django and the software.cfg
file is lighter as long as you know the location of the script to source. For my tests I print it in the logs but it's clearly not a good solution. Again, I don't know how I can display the file to be sourced.