Skip to content
GitLab
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
0e483ff6
Commit
0e483ff6
authored
Oct 10, 2019
by
Tiago de Freitas Pereira
Browse files
Merge branch 'conda-build-hack' into 'master'
'info/LICENSE' not in info/files See merge request
!113
parents
c99c3336
d8e3320d
Pipeline
#34230
passed with stages
in 5 minutes and 37 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/devtools/bootstrap.py
View file @
0e483ff6
...
...
@@ -437,6 +437,22 @@ 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"
)
if
(
os
.
path
.
exists
(
'COPYING'
)):
os
.
symlink
(
f
"
{
pwd
}
/COPYING"
,
f
"
{
pwd
}
/conda/COPYING"
)
recipe
=
open
(
"./conda/meta.yaml"
).
readlines
()
recipe
=
[
l
.
replace
(
"../COPYING"
,
"COPYING"
).
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"
)
...
...
conda/meta.yaml
View file @
0e483ff6
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment