Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
2b20d94d
Commit
2b20d94d
authored
Feb 12, 2019
by
André Anjos
💬
Browse files
[boostrap] Allow bootstrapping using the base environment
parent
de6553a0
Pipeline
#26811
canceled with stages
in 3 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/devtools/bootstrap.py
View file @
2b20d94d
...
...
@@ -412,13 +412,13 @@ if __name__ == '__main__':
])
conda_bld_path
=
os
.
path
.
join
(
args
.
conda_root
,
'conda-bld'
)
run_cmdline
([
conda_bin
,
'index'
,
conda_bld_path
])
# add the locally build directory before defaults, boot from there
channels
=
get_channels
(
public
=
True
,
stable
=
True
,
server
=
_SERVER
,
intranet
=
True
)
+
[
'defaults'
]
channels
=
[
'--override-channels'
]
+
\
[
'--channel='
+
conda_bld_path
]
+
\
[
'--channel=%s'
%
k
for
k
in
channels
]
run_cmdline
([
conda_bin
,
'create'
]
+
conda_verbosity
+
channels
+
\
conda_cmd
=
'install'
if
args
.
envname
in
(
'base'
,
'root'
)
else
'create'
run_cmdline
([
conda_bin
,
conda_cmd
]
+
conda_verbosity
+
channels
+
\
[
'-n'
,
args
.
envname
,
'bob.devtools'
])
elif
args
.
command
==
'channel'
:
...
...
@@ -427,9 +427,9 @@ if __name__ == '__main__':
channels
=
get_channels
(
public
=
True
,
stable
=
(
args
.
tag
is
not
None
),
server
=
_SERVER
,
intranet
=
True
)
+
[
'defaults'
]
channels
=
[
'--override-channels'
]
+
\
[
'--channel=%s'
%
k
for
k
in
channels
]
run_cmdline
([
conda_bin
,
'create'
]
+
conda_verbosity
+
channels
+
\
channels
=
[
'--override-channels'
]
+
[
'--channel=%s'
%
k
for
k
in
channels
]
conda_cmd
=
'install'
if
args
.
envname
in
(
'base'
,
'root'
)
else
'create'
run_cmdline
([
conda_bin
,
conda_cmd
]
+
conda_verbosity
+
channels
+
\
[
'-n'
,
args
.
envname
,
'bob.devtools'
])
# print conda information for debugging purposes
...
...
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