Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
slapos.recipe.build
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • nexedi
  • slapos.recipe.build
  • Merge Requests
  • !15

Open
Opened Feb 24, 2022 by Thomas Leymonerie@tleymone
  • Report abuse
Report abuse

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.

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://lab.nexedi.com/tleymone/slapos.recipe.build.git eggs-paths
git checkout -b tleymone/slapos.recipe.build-eggs-paths FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/master
git merge --no-ff tleymone/slapos.recipe.build-eggs-paths

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 19
  • Commits 1
  • Changes 2
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/slapos.recipe.build!15
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备14008524号