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
3ad22950
Commit
3ad22950
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Plain Diff
Merge branch 'miniconda-proxy' into 'master'
Use local proxy See merge request
!125
parents
cb4b6ab3
aeb6e65b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!125
Use local proxy
Pipeline
#34736
passed
5 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
+12
-11
12 additions, 11 deletions
bob/devtools/bootstrap.py
with
12 additions
and
11 deletions
bob/devtools/bootstrap.py
+
12
−
11
View file @
3ad22950
...
...
@@ -264,8 +264,6 @@ def ensure_miniconda_sh():
installer.
"""
server
=
"
repo.continuum.io
"
# https
# WARNING: if you update this version, remember to update hahes below
path
=
"
/miniconda/Miniconda3-4.7.12-%s-x86_64.sh
"
if
platform
.
system
()
==
"
Darwin
"
:
...
...
@@ -293,18 +291,20 @@ def ensure_miniconda_sh():
# re-downloads installer
import
http.client
logger
.
info
(
"
Connecting to https://%s...
"
,
server
)
conn
=
http
.
client
.
HTTPSConnection
(
server
)
server
=
"
www.idiap.ch
"
# http
logger
.
info
(
"
Connecting to http://%s...
"
,
server
)
conn
=
http
.
client
.
HTTPConnection
(
server
)
conn
.
request
(
"
GET
"
,
path
)
r1
=
conn
.
getresponse
()
assert
r1
.
status
==
200
,
(
"
Request for http
s
://%s%s - returned status %d
"
"
Request for http://%s%s - returned status %d
"
"
(%s)
"
%
(
server
,
path
,
r1
.
status
,
r1
.
reason
)
)
dst
=
"
miniconda.sh
"
logger
.
info
(
"
(download) http
s
://%s%s -> %s...
"
,
server
,
path
,
dst
)
logger
.
info
(
"
(download) http://%s%s -> %s...
"
,
server
,
path
,
dst
)
with
open
(
dst
,
"
wb
"
)
as
f
:
f
.
write
(
r1
.
read
())
...
...
@@ -339,8 +339,8 @@ def install_miniconda(prefix, name):
def
get_channels
(
public
,
stable
,
server
,
intranet
,
group
):
"""
Returns the relevant conda channels to consider if building project.
The subset of channels to be returned depends on the visibility and
stability
of the package being built. Here are the rules:
The subset of channels to be returned depends on the visibility and
stability
of the package being built. Here are the rules:
* public and stable: only returns the public stable channel(s)
* public and not stable: returns both public stable and beta channels
...
...
@@ -360,9 +360,10 @@ def get_channels(public, stable, server, intranet, group):
server: The base address of the server containing our conda channels
intranet: Boolean indicating if we should add
"
private
"
/
"
public
"
prefixes
on the conda paths
group: The group of packages (gitlab namespace) the package we
'
re compiling
is part of. Values should match URL namespaces currently available on
our internal webserver. Currently, only
"
bob
"
or
"
beat
"
will work.
group: The group of packages (gitlab namespace) the package we
'
re
compiling is part of. Values should match URL namespaces currently
available on our internal webserver. Currently, only
"
bob
"
or
"
beat
"
will work.
Returns: a list of channels that need to be considered.
...
...
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