Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
f7d5398c
Commit
f7d5398c
authored
Nov 06, 2022
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tune dev.py
parent
9d5f6f2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
dev.py
dev.py
+7
-19
No files found.
dev.py
View file @
f7d5398c
...
...
@@ -118,15 +118,8 @@ def main(args):
print
(
output
.
decode
(
'utf8'
))
return
not
was_up_to_date
except
subprocess
.
CalledProcessError
as
e
:
# some debian/ubuntu based machines
# have broken pip installs
# that cannot import distutils or html5lib
# thus try to install via get-pip
if
(
b"ImportError"
in
e
.
output
or
b"ModuleNotFoundError"
in
e
.
output
)
:
install_pip
()
return
False
raise
RuntimeError
(
"Upgrade %s failed."
%
package
)
print
(
e
.
output
)
raise
RuntimeError
(
"Upgrade of %s failed."
%
package
)
def
install_pinned_version
(
package
,
version
):
print
(
''
)
...
...
@@ -145,15 +138,10 @@ def main(args):
print
(
output
.
decode
(
'utf8'
))
return
not
was_up_to_date
except
subprocess
.
CalledProcessError
as
e
:
# some debian/ubuntu based machines
# have broken pip installs
# that cannot import distutils or html5lib
# thus try to install via get-pip
if
(
b"ImportError"
in
e
.
output
or
b"ModuleNotFoundError"
in
e
.
output
)
:
install_pip
()
return
False
raise
RuntimeError
(
"Install %s failed."
%
package
)
print
(
e
.
output
)
raise
RuntimeError
(
"Install version %s of %s failed."
%
(
version
,
package
)
)
def
show
(
package
):
try
:
...
...
@@ -165,7 +153,7 @@ def main(args):
if
line
.
startswith
(
b'Name'
)
or
line
.
startswith
(
b'Version'
):
print
(
line
.
decode
(
'utf8'
))
except
subprocess
.
CalledProcessError
:
raise
RuntimeError
(
"
Upgrade
%s failed."
%
package
)
raise
RuntimeError
(
"
Show version of
%s failed."
%
package
)
need_restart
=
False
...
...
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