From 226b70da298696f53689c6405afc1ade486e4710 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 15 Dec 2023 21:17:14 -0800 Subject: [PATCH] build/sage_bootstrap/package.py (dependencies): Strip after # --- build/sage_bootstrap/package.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/sage_bootstrap/package.py b/build/sage_bootstrap/package.py index b2f8c0136ba..4c8575f75cc 100644 --- a/build/sage_bootstrap/package.py +++ b/build/sage_bootstrap/package.py @@ -386,26 +386,26 @@ def _init_install_requires(self): def _init_dependencies(self): try: with open(os.path.join(self.path, 'dependencies')) as f: - self.__dependencies = f.readline().strip() + self.__dependencies = f.readline().partition('#')[0].strip() except IOError: self.__dependencies = '' try: with open(os.path.join(self.path, 'dependencies_check')) as f: - self.__dependencies_check = f.readline().strip() + self.__dependencies_check = f.readline().partition('#')[0].strip() except IOError: self.__dependencies_check = '' try: with open(os.path.join(self.path, 'dependencies_optional')) as f: - self.__dependencies_optional = f.readline() + self.__dependencies_optional = f.readline().partition('#')[0].strip() except IOError: self.__dependencies_optional = '' try: with open(os.path.join(self.path, 'dependencies_order_only')) as f: - self.__dependencies_order_only = f.readline() + self.__dependencies_order_only = f.readline().partition('#')[0].strip() except IOError: self.__dependencies_order_only = '' try: with open(os.path.join(self.path, 'dependencies_build')) as f: - self.__dependencies_build = f.readline() + self.__dependencies_build = f.readline().partition('#')[0].strip() except IOError: self.__dependencies_build = None