Skip to content

Commit

Permalink
Like this?
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Oct 13, 2023
1 parent 1deed31 commit fe5d0f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/get_yml_env_nopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def environment_yml_nopy(fn_env: str, print_dep: str = "both") -> None:
conda_dep_env_without_python = [dep for dep in conda_dep_env if "python" not in dep]

# Put lower version into brackets for support on Windows
conda_dep_env_without_python = ['"'+dep+'"' if "<" in dep else dep for dep in conda_dep_env_without_python]
if os.name == 'nt':
conda_dep_env_without_python = ["$l".join(dep.split("<")) if "<" in dep else dep for dep in conda_dep_env_without_python]

# Join the lists
joined_list_conda_dep = " ".join(conda_dep_env_without_python)
Expand Down

0 comments on commit fe5d0f6

Please sign in to comment.