Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S slapos.recipe.build
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedi
  • slapos.recipe.build
  • Merge requests
  • !15

Closed
Created Feb 24, 2022 by Thomas Leymonerie@tleymone
  • Report abuse
Report abuse

WIP: Slapos.recipe.egg

  • Overview 20
  • Commits 1
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: eggs-paths
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7