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
d2d9a061
Commit
d2d9a061
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[build] Make base_build() accept bootstrap module as input parameter so it can be reused
parent
267636b9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#26909
passed
6 years ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/devtools/build.py
+5
-3
5 additions, 3 deletions
bob/devtools/build.py
bob/devtools/scripts/ci.py
+3
-1
3 additions, 1 deletion
bob/devtools/scripts/ci.py
with
8 additions
and
4 deletions
bob/devtools/build.py
+
5
−
3
View file @
d2d9a061
...
@@ -462,7 +462,7 @@ def git_clean_build(runner, verbose):
...
@@ -462,7 +462,7 @@ def git_clean_build(runner, verbose):
[
'
--exclude=%s
'
%
k
for
k
in
exclude_from_cleanup
])
[
'
--exclude=%s
'
%
k
for
k
in
exclude_from_cleanup
])
def
base_build
(
server
,
intranet
,
recipe_dir
,
conda_build_config
,
def
base_build
(
bootstrap
,
server
,
intranet
,
recipe_dir
,
conda_build_config
,
python_version
,
condarc_options
):
python_version
,
condarc_options
):
'''
Builds a non-beat/bob software dependence that does not exist on defaults
'''
Builds a non-beat/bob software dependence that does not exist on defaults
...
@@ -475,6 +475,8 @@ def base_build(server, intranet, recipe_dir, conda_build_config,
...
@@ -475,6 +475,8 @@ def base_build(server, intranet, recipe_dir, conda_build_config,
Args:
Args:
bootstrap: Module that should be pre-loaded so this function can be used
in a pre-bdt build
server: The base address of the server containing our conda channels
server: The base address of the server containing our conda channels
intranet: Boolean indicating if we should add
"
private
"
/
"
public
"
prefixes
intranet: Boolean indicating if we should add
"
private
"
/
"
public
"
prefixes
on the returned paths
on the returned paths
...
@@ -604,8 +606,8 @@ if __name__ == '__main__':
...
@@ -604,8 +606,8 @@ if __name__ == '__main__':
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
recipe
,
'
meta.yaml
'
)):
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
recipe
,
'
meta.yaml
'
)):
# ignore - not a conda package
# ignore - not a conda package
continue
continue
base_build
(
server
,
not
args
.
internet
,
recipe
,
conda_build_config
,
base_build
(
bootstrap
,
server
,
not
args
.
internet
,
recipe
,
args
.
python_version
,
condarc_options
)
conda_build_config
,
args
.
python_version
,
condarc_options
)
# notice this condarc typically will only contain the defaults channel - we
# notice this condarc typically will only contain the defaults channel - we
# need to boost this up with more channels to get it right for this package's
# need to boost this up with more channels to get it right for this package's
...
...
This diff is collapsed.
Click to expand it.
bob/devtools/scripts/ci.py
+
3
−
1
View file @
d2d9a061
...
@@ -343,11 +343,13 @@ def base_build(order, dry_run):
...
@@ -343,11 +343,13 @@ def base_build(order, dry_run):
line
=
line
.
partition
(
'
#
'
)[
0
].
strip
()
line
=
line
.
partition
(
'
#
'
)[
0
].
strip
()
if
line
:
recipes
.
append
(
line
)
if
line
:
recipes
.
append
(
line
)
from
..
import
bootstrap
for
recipe
in
recipes
:
for
recipe
in
recipes
:
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
recipe
,
'
meta.yaml
'
)):
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
recipe
,
'
meta.yaml
'
)):
# ignore - not a conda package
# ignore - not a conda package
continue
continue
_build
(
SERVER
,
True
,
recipe
,
CONDA_BUILD_CONFIG
,
_build
(
bootstrap
,
SERVER
,
True
,
recipe
,
CONDA_BUILD_CONFIG
,
os
.
environ
[
'
PYTHON_VERSION
'
],
condarc_options
)
os
.
environ
[
'
PYTHON_VERSION
'
],
condarc_options
)
...
...
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