From d8e3320d2157b79009539aa2c9c91fe05f2d55b3 Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Thu, 10 Oct 2019 11:04:40 +0200 Subject: [PATCH] Implemented hack for the info/files issue. Patching the copying file too --- bob/devtools/bootstrap.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bob/devtools/bootstrap.py b/bob/devtools/bootstrap.py index bdd1dbd0..ab937ef6 100644 --- a/bob/devtools/bootstrap.py +++ b/bob/devtools/bootstrap.py @@ -444,9 +444,14 @@ if __name__ == "__main__": 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("../LICENSE","LICENSE") for l in recipe] + 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") -- GitLab