Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • S slapos.recipe.build
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • slapos.recipe.build
  • Merge requests
  • !15

WIP: Slapos.recipe.egg

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Thomas Leymonerie requested to merge tleymone/slapos.recipe.build:eggs-paths into master Feb 24, 2022
  • Overview 20
  • Commits 1
  • Pipelines 0
  • Changes 2

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.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: eggs-paths
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7