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
e9ffa187
Commit
e9ffa187
authored
5 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Implemented hack for the info/files issue
parent
c99c3336
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!113
'info/LICENSE' not in info/files
Pipeline
#34221
passed
5 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/devtools/bootstrap.py
+11
-0
11 additions, 0 deletions
bob/devtools/bootstrap.py
conda/meta.yaml
+1
-0
1 addition, 0 deletions
conda/meta.yaml
with
12 additions
and
0 deletions
bob/devtools/bootstrap.py
+
11
−
0
View file @
e9ffa187
...
...
@@ -437,6 +437,17 @@ if __name__ == "__main__":
logger
.
warn
(
'
See https://gitlab.idiap.ch/bob/bob.devtools/merge_requests/112
'
)
os
.
unlink
(
'
.gitignore
'
)
#### END OF HACK
#### HACK that avoids this issue: https://github.com/conda/conda-build/issues/3767
if
os
.
path
.
exists
(
'
LICENSE
'
)
and
os
.
path
.
exists
(
'
conda
'
):
logger
.
warn
(
'
Creating symlink in `./conda` to avoid issue with conda build (https://github.com/conda/conda-build/issues/3767)
'
)
logger
.
warn
(
'
Replacing ../LICENSE to LICENSE (https://github.com/conda/conda-build/issues/3767)
'
)
pwd
=
os
.
path
.
abspath
(
os
.
curdir
)
os
.
symlink
(
f
"
{
pwd
}
/LICENSE
"
,
f
"
{
pwd
}
/conda/LICENSE
"
)
recipe
=
open
(
"
./conda/meta.yaml
"
).
readlines
()
recipe
=
[
l
.
replace
(
"
../LICENSE
"
,
"
LICENSE
"
)
for
l
in
recipe
]
open
(
"
./conda/meta.yaml
"
,
"
wt
"
).
write
(
''
.
join
(
recipe
))
#### END OF HACK
condarc
=
os
.
path
.
join
(
args
.
conda_root
,
"
condarc
"
)
...
...
This diff is collapsed.
Click to expand it.
conda/meta.yaml
+
1
−
0
View file @
e9ffa187
...
...
@@ -111,3 +111,4 @@ about:
license
:
BSD 3-Clause
summary
:
Tools for development and CI integration of Bob packages
license_family
:
BSD
license_file
:
../LICENSE
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