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
66da3d77
Commit
66da3d77
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[bootstrap] Standardize condarc file - don't modifying it adding channels along
parent
7dbf3c06
No related branches found
No related tags found
No related merge requests found
Pipeline
#26094
failed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/bootstrap.py
+2
-15
2 additions, 15 deletions
bob/devtools/bootstrap.py
with
2 additions
and
15 deletions
bob/devtools/bootstrap.py
+
2
−
15
View file @
66da3d77
...
@@ -36,6 +36,8 @@ quiet: true #!final
...
@@ -36,6 +36,8 @@ quiet: true #!final
show_channel_urls: true #!final
show_channel_urls: true #!final
anaconda_upload: false #!final
anaconda_upload: false #!final
ssl_verify: false #!final
ssl_verify: false #!final
channels:
- defaults
'''
'''
_SERVER
=
'
http://www.idiap.ch
'
_SERVER
=
'
http://www.idiap.ch
'
...
@@ -299,18 +301,6 @@ def get_channels(public, stable, server, intranet):
...
@@ -299,18 +301,6 @@ def get_channels(public, stable, server, intranet):
return
channels
return
channels
def
add_channels_condarc
(
channels
,
condarc
):
'''
Appends passed channel list to condarc file, print contents
'''
with
open
(
condarc
,
'
at
'
)
as
f
:
f
.
write
(
'
channels:
\n
'
)
for
k
in
channels
:
f
.
write
(
'
- %s
\n
'
%
k
)
with
open
(
condarc
,
'
rt
'
)
as
f
:
logger
.
info
(
'
Contents of installed CONDARC:
\n
%s
'
,
f
.
read
())
def
setup_logger
(
logger
):
def
setup_logger
(
logger
):
'''
Sets-up the logging for this command at level ``INFO``
'''
'''
Sets-up the logging for this command at level ``INFO``
'''
...
@@ -361,8 +351,6 @@ if __name__ == '__main__':
...
@@ -361,8 +351,6 @@ if __name__ == '__main__':
logger
.
info
(
'
(create) %s
'
,
condarc
)
logger
.
info
(
'
(create) %s
'
,
condarc
)
with
open
(
condarc
,
'
wt
'
)
as
f
:
with
open
(
condarc
,
'
wt
'
)
as
f
:
f
.
write
(
_BASE_CONDARC
)
f
.
write
(
_BASE_CONDARC
)
# we just add the "defaults" channels to the stock condarc
add_channels_condarc
([
'
defaults
'
],
condarc
)
conda_version
=
'
4
'
conda_version
=
'
4
'
conda_build_version
=
'
3
'
conda_build_version
=
'
3
'
...
@@ -404,7 +392,6 @@ if __name__ == '__main__':
...
@@ -404,7 +392,6 @@ if __name__ == '__main__':
server
=
_SERVER
,
intranet
=
True
)
server
=
_SERVER
,
intranet
=
True
)
channels
=
[
'
--override-channels
'
]
+
\
channels
=
[
'
--override-channels
'
]
+
\
[
'
--channel=%s
'
%
k
for
k
in
channels
]
[
'
--channel=%s
'
%
k
for
k
in
channels
]
add_channels_condarc
(
channels
+
[
'
defaults
'
],
condarc
)
run_cmdline
([
conda_bin
,
'
create
'
]
+
channels
+
\
run_cmdline
([
conda_bin
,
'
create
'
]
+
channels
+
\
[
'
-n
'
,
sys
.
argv
[
2
],
'
bob.devtools
'
])
[
'
-n
'
,
sys
.
argv
[
2
],
'
bob.devtools
'
])
...
...
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