Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.devtools
Commits
250aad52
Commit
250aad52
authored
Nov 14, 2019
by
André Anjos
💬
Browse files
[bootstrap] black-ify; short warning messages
parent
f8eb6017
Pipeline
#35338
passed with stage
in 6 minutes and 42 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
bob/devtools/bootstrap.py
View file @
250aad52
...
@@ -62,26 +62,28 @@ def do_hack(project_dir):
...
@@ -62,26 +62,28 @@ def do_hack(project_dir):
git_ignore_file
=
os
.
path
.
join
(
project_dir
,
".gitignore"
)
git_ignore_file
=
os
.
path
.
join
(
project_dir
,
".gitignore"
)
if
os
.
path
.
exists
(
git_ignore_file
):
if
os
.
path
.
exists
(
git_ignore_file
):
logger
.
warning
(
'Removing ".gitignore" to overcome issues with ripgrep'
)
logger
.
warning
(
logger
.
warning
(
"See https://gitlab.idiap.ch/bob/bob.devtools/merge_requests/112"
"Removing .gitignore to avoid issue with ripgrep (see "
"https://gitlab.idiap.ch/bob/bob.devtools/merge_requests/112)"
)
)
os
.
unlink
(
git_ignore_file
)
os
.
unlink
(
git_ignore_file
)
#### END OF HACK
#### END OF HACK
#### HACK that avoids this issue:
#### HACK that avoids this issue:
#### https://github.com/conda/conda-build/issues/3767
#### https://github.com/conda/conda-build/issues/3767
candidates
=
[
'
LICENSE
'
,
'
LICENSE.AGPL
'
,
'
COPYING
'
]
candidates
=
[
"
LICENSE
"
,
"
LICENSE.AGPL
"
,
"
COPYING
"
]
for
k
in
candidates
:
for
k
in
candidates
:
license_file
=
os
.
path
.
join
(
project_dir
,
k
)
license_file
=
os
.
path
.
join
(
project_dir
,
k
)
if
not
os
.
path
.
exists
(
license_file
):
continue
if
not
os
.
path
.
exists
(
license_file
):
continue
recipe_dir
=
os
.
path
.
join
(
project_dir
,
"conda"
)
recipe_dir
=
os
.
path
.
join
(
project_dir
,
"conda"
)
if
os
.
path
.
exists
(
recipe_dir
):
if
os
.
path
.
exists
(
recipe_dir
):
logger
.
warning
(
logger
.
warning
(
"Copying %s file to conda-recipe dir to avoid issue "
"Copying %s file to conda-recipe dir to avoid issue "
"with conda build "
"with conda-build "
"(https://github.com/conda/conda-build/issues/3767)"
,
k
"(see: https://github.com/conda/conda-build/issues/3767)"
,
k
,
)
)
shutil
.
copy
(
license_file
,
recipe_dir
)
shutil
.
copy
(
license_file
,
recipe_dir
)
#### END OF HACK
#### END OF HACK
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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