Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
f7ae91f3
Commit
f7ae91f3
authored
4 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[scripts.create] Fix pip-installation during dry-run mode
parent
db1ee078
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#45657
passed
4 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/scripts/create.py
+4
-1
4 additions, 1 deletion
bob/devtools/scripts/create.py
with
4 additions
and
1 deletion
bob/devtools/scripts/create.py
+
4
−
1
View file @
f7ae91f3
...
@@ -279,6 +279,9 @@ def create(
...
@@ -279,6 +279,9 @@ def create(
cmd
=
[
conda
,
"
run
"
,
"
--live-stream
"
,
"
--name
"
,
name
,
"
pip
"
,
"
install
"
]
cmd
=
[
conda
,
"
run
"
,
"
--live-stream
"
,
"
--name
"
,
name
,
"
pip
"
,
"
install
"
]
cmd
+=
pip_extras
cmd
+=
pip_extras
subprocess
.
run
(
cmd
,
check
=
True
,
bufsize
=
1
)
if
not
dry_run
:
subprocess
.
run
(
cmd
,
check
=
True
,
bufsize
=
1
)
else
:
logger
.
info
(
f
"
Command:
{
'
'
.
join
(
cmd
)
}
"
)
echo_normal
(
f
"
>>> Execute on your shell:
\"
conda activate
{
name
}
\"
"
)
echo_normal
(
f
"
>>> Execute on your shell:
\"
conda activate
{
name
}
\"
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment