diff --git a/scripts/generate-conda-envs.py b/scripts/generate-conda-envs.py index c37df67b8..8b104fa42 100755 --- a/scripts/generate-conda-envs.py +++ b/scripts/generate-conda-envs.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved. +# Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation @@ -193,11 +193,12 @@ def conda(self) -> Reqs: "pytest", "types-docutils", "pynvml", + "tifffile", ) @property def pip(self) -> Reqs: - return ("tifffile",) + return () @dataclass(frozen=True) @@ -206,11 +207,9 @@ class DocsConfig(SectionConfig): @property def conda(self) -> Reqs: - return ("pandoc", "doxygen") - - @property - def pip(self) -> Reqs: return ( + "pandoc", + "doxygen", "ipython", "jinja2", "markdown<3.4.0", @@ -221,6 +220,10 @@ def pip(self) -> Reqs: "sphinx>=4.4.0", ) + @property + def pip(self) -> Reqs: + return () + @dataclass(frozen=True) class EnvConfig: @@ -485,7 +488,9 @@ def section_selected(section): use=config.use, python=config.python, conda_sections=conda_sections, - pip=PIP_TEMPLATE.format(pip_sections=pip_sections), + pip=PIP_TEMPLATE.format(pip_sections=pip_sections) + if pip_sections + else "", ) with open(f"{filename}.yaml", "w") as f: f.write(out)