Skip to content

Commit

Permalink
Fix/ignore formatting rules for extended comments in var/spack/repos/…
Browse files Browse the repository at this point in the history
…builtin/packages/py-cylc-flow/package.py
  • Loading branch information
climbfuji committed Dec 26, 2024
1 parent c12792f commit 4f6695c
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions var/spack/repos/builtin/packages/py-cylc-flow/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,35 +53,35 @@ class PyCylcFlow(PythonPackage):
# DH* KEEP ALL THIS UNTIL https://github.com/spack/spack/pull/48052 is merged.
# Depending on the solution adopted there, we may not some of the stuff below,
# or none of it.
### cylc at runtime unsets PYTHONPATH, then sets it from CYLC_PYTHONPATH
### https://github.com/cylc/cylc-flow/issues/5124
##def setup_run_environment(self, env):
##
## def add_dependencies_to_cylc_pythonpath(spec):
## cylc_pythonpaths = []
## pyver = spec["python"].version.up_to(2)
## pydir = join_path("python{0}".format(pyver), "site-packages")
## for dep in spec.dependencies(deptype="run"):
## if dep.name.startswith("py-"):
## cylc_pythonpaths = add_dependencies_to_cylc_pythonpath(dep) + cylc_pythonpaths
## cylc_pythonpaths = [ join_path(dep.prefix.lib, pydir) for dep in spec.dependencies(deptype="run") if dep.name.startswith("py-") ] + cylc_pythonpaths
## return cylc_pythonpaths
##
## cylc_pythonpaths = add_dependencies_to_cylc_pythonpath(self.spec)
## # Remove duplicates
## cylc_pythonpaths = list(set(cylc_pythonpaths))
## #cylc_pythonpaths = [ join_path(dep.prefix.lib, pydir) for dep in self.spec.dependencies(deptype="run") if dep.name.startswith("py-") ]
## env.set("CYLC_PYTHONPATH", ":".join(cylc_pythonpaths))
##
### We need to filter this out, spack knows what it is doing.
##@run_after("install")
##def fix_cylc_pythonpath_mangling(self):
## python_version = self.spec["python"].version.up_to(2)
## pydir = join_path(self.prefix.lib, "python{0}".format(python_version), "site-packages")
## cylc_dot_py = join_path(pydir, "cylc/flow/scripts/cylc.py")
## filter_file(
## r"^pythonpath_manip\(\)$",
## "# spack knows what it is doing, skip 'pythonpath_manip()'",
## cylc_dot_py,
## )
# *DH
# ## cylc at runtime unsets PYTHONPATH, then sets it from CYLC_PYTHONPATH
# ## https://github.com/cylc/cylc-flow/issues/5124
# #def setup_run_environment(self, env):
# #
# # def add_dependencies_to_cylc_pythonpath(spec):
# # cylc_pythonpaths = []
# # pyver = spec["python"].version.up_to(2)
# # pydir = join_path("python{0}".format(pyver), "site-packages")
# # for dep in spec.dependencies(deptype="run"):
# # if dep.name.startswith("py-"):
# # cylc_pythonpaths = add_dependencies_to_cylc_pythonpath(dep) + cylc_pythonpaths # noqa: E501
# # cylc_pythonpaths = [ join_path(dep.prefix.lib, pydir) for dep in spec.dependencies(deptype="run") if dep.name.startswith("py-") ] + cylc_pythonpaths # noqa: E501
# # return cylc_pythonpaths
# #
# # cylc_pythonpaths = add_dependencies_to_cylc_pythonpath(self.spec)
# # # Remove duplicates
# # cylc_pythonpaths = list(set(cylc_pythonpaths))
# # #cylc_pythonpaths = [ join_path(dep.prefix.lib, pydir) for dep in self.spec.dependencies(deptype="run") if dep.name.startswith("py-") ] # noqa: E501
# # env.set("CYLC_PYTHONPATH", ":".join(cylc_pythonpaths))
# #
# ## We need to filter this out, spack knows what it is doing.
# #@run_after("install")
# #def fix_cylc_pythonpath_mangling(self):
# # python_version = self.spec["python"].version.up_to(2)
# # pydir = join_path(self.prefix.lib, "python{0}".format(python_version), "site-packages")
# # cylc_dot_py = join_path(pydir, "cylc/flow/scripts/cylc.py")
# # filter_file(
# # r"^pythonpath_manip\(\)$",
# # "# spack knows what it is doing, skip 'pythonpath_manip()'",
# # cylc_dot_py,
# # )
# *DH

0 comments on commit 4f6695c

Please sign in to comment.