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
f8eb6017
Commit
f8eb6017
authored
5 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[bootstrap] Restores some of the previous hack to get builds going; Simplify hack
parent
0acb356d
No related branches found
No related tags found
1 merge request
!127
Reset license file location and remove hack (closes #44)
Pipeline
#35337
canceled
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/bootstrap.py
+17
-0
17 additions, 0 deletions
bob/devtools/bootstrap.py
with
17 additions
and
0 deletions
bob/devtools/bootstrap.py
+
17
−
0
View file @
f8eb6017
...
...
@@ -69,6 +69,23 @@ def do_hack(project_dir):
os
.
unlink
(
git_ignore_file
)
#### END OF HACK
#### HACK that avoids this issue:
#### https://github.com/conda/conda-build/issues/3767
candidates
=
[
'
LICENSE
'
,
'
LICENSE.AGPL
'
,
'
COPYING
'
]
for
k
in
candidates
:
license_file
=
os
.
path
.
join
(
project_dir
,
k
)
if
not
os
.
path
.
exists
(
license_file
):
continue
recipe_dir
=
os
.
path
.
join
(
project_dir
,
"
conda
"
)
if
os
.
path
.
exists
(
recipe_dir
):
logger
.
warning
(
"
Copying %s file to conda-recipe dir to avoid issue
"
"
with conda build
"
"
(https://github.com/conda/conda-build/issues/3767)
"
,
k
)
shutil
.
copy
(
license_file
,
recipe_dir
)
#### END OF HACK
def
set_environment
(
name
,
value
,
env
=
os
.
environ
):
"""
Function to setup the environment variable and print debug message.
...
...
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