Skip to content

Commit

Permalink
build/sage_bootstrap/package.py (dependencies): Strip after #
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Dec 16, 2023
1 parent ee134ef commit 226b70d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/sage_bootstrap/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 226b70d

Please sign in to comment.