From c1bbc46b9413cbf3091ebba95ce1a5fa4907920c Mon Sep 17 00:00:00 2001 From: Jonathan Helmus Date: Tue, 12 Mar 2019 16:55:13 -0500 Subject: [PATCH] upper bound on tornado dep for notebook <5.7.6 See https://github.com/jupyter/notebook/issues/4439 --- main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.py b/main.py index 6f571bb..1a0f712 100644 --- a/main.py +++ b/main.py @@ -411,6 +411,14 @@ def _patch_repodata(repodata, subdir): if record['name'] == 'numpy': _fix_numpy_base_constrains(record, index, instructions) + if record['name'] == 'notebook': + # notebook <5.7.6 will not work with tornado 6, see: + # https://github.com/jupyter/notebook/issues/4439 + if 'tornado >=4' in record['depends']: + t4_index = record['depends'].index('tornado >=4') + record['depends'][t4_index]= 'tornado >=4,<6' + instructions["packages"][fn]["depends"] = record["depends"] + if fn == 'cupti-9.0.176-0.tar.bz2': # depends in package is set as cudatoolkit 9.*, should be 9.0.* instructions["packages"][fn]["depends"] = ['cudatoolkit 9.0.*']