From 594cea6ae2383fbf0c4b6b7e3a7ccca350b2bb3b Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Mon, 17 Sep 2018 14:29:51 -0400 Subject: [PATCH 1/2] add toolchain3 in the same places as toolchain --- conda_smithy/update_cb3.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/conda_smithy/update_cb3.py b/conda_smithy/update_cb3.py index 2bef3e4a1..dc58b6564 100644 --- a/conda_smithy/update_cb3.py +++ b/conda_smithy/update_cb3.py @@ -70,7 +70,7 @@ def __getitem__(self, item): return Section(sect, start, end) return Section(sect, start, self.end) - + def iterate(tarzip): if isinstance(tarzip, zipfile.ZipFile): for f in iter(tarzip.infolist()): @@ -229,13 +229,14 @@ def update_cb3(recipe_path, conda_build_config_path): need_f = True if req == 'r-base': is_r_package = True - if req_rendered in ['toolchain', 'gcc', 'libgcc', 'libgfortran', 'vc', 'm2w64-toolchain', - 'mingwpy', 'system', 'gcc-libs', 'm2w64-gcc-libs']: + if req_rendered in ['toolchain', 'toolchain3', 'gcc', 'libgcc', + 'libgfortran', 'vc', 'm2w64-toolchain', 'mingwpy', 'system', + 'gcc-libs', 'm2w64-gcc-libs']: messages['Removing {} in favour of compiler()'.format(req)] = True change_lines[i] = (lines[i], None) need_c = True if req in ['m2w64-toolchain', 'mingwpy'] or \ - (req != req_rendered and req_rendered == 'toolchain'): + (req != req_rendered and req_rendered in ['toolchain', 'toolchain3']): need_mingw_c = True continue if req_rendered == 'cython' and not (need_c or need_cxx or need_f): From 1a0c5570a29939675747b5fc6187dd87c9abdf37 Mon Sep 17 00:00:00 2001 From: Anthony Scopatz Date: Mon, 17 Sep 2018 14:32:01 -0400 Subject: [PATCH 2/2] news for tc3 --- news/tc3.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 news/tc3.rst diff --git a/news/tc3.rst b/news/tc3.rst new file mode 100644 index 000000000..7fdf04047 --- /dev/null +++ b/news/tc3.rst @@ -0,0 +1,14 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* The ``update-cb3`` command now handles ``toolchain3`` in the same way that + ``toolchain`` is handled. + +**Security:** None