Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
32c50ea2
Commit
32c50ea2
authored
Oct 24, 2022
by
Jérome Perrin
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
software/slapos-sr-testing: prevent softwares from using python 2
🚧
parent
f9ad8109
Pipeline
#24350
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
software/slapos-sr-testing/software.cfg
software/slapos-sr-testing/software.cfg
+21
-0
No files found.
software/slapos-sr-testing/software.cfg
View file @
32c50ea2
...
...
@@ -22,6 +22,7 @@ extends =
parts =
eggs/scripts
python2.7-disabled
slapos-cookbook
template
...
...
@@ -251,6 +252,26 @@ branch = master
egg = slapos.core
setup = ${slapos.core-repository:location}
[python2.7-disabled]
# An "intentionally broken" python2 command that should catch
# accidental usage of things like #!/usr/bin/env python2
recipe = zc.recipe.egg
# we need an egg to generate a script, use the one from this part's recipe
eggs = ${:recipe}
interpreter = python2.7
entry-points =
python=${:eggs}:ignored
python2=${:eggs}:ignored
python2.7=${:eggs}:ignored
scripts =
python
python2
python2.7
initialization =
import sys
print("Error: attempt to use system python2", file=sys.stderr)
sys.exit(2)
[python-interpreter]
eggs +=
${lxml-python:egg}
...
...
Jérome Perrin
@jerome
·
Oct 26, 2022
Maintainer
example
https://erp5js.nexedi.net/#/test_result_module/20221025-1055C5BF2/35
example https://erp5js.nexedi.net/#/test_result_module/20221025-1055C5BF2/35
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment