Skip to content

Commit 7d67167

Browse files
committed
Reorder import statements in find_tarball_for_platform method for clarity
1 parent 448f5ee commit 7d67167

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/sage_bootstrap/package.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,10 @@ def find_tarball_for_platform(self):
282282
Dictionary with tarball info, or None if no suitable tarball found.
283283
The dictionary contains the same fields as tarballs_info entries.
284284
"""
285-
import subprocess
286285
import json
286+
import subprocess
287+
288+
from sage_bootstrap.env import SAGE_ROOT
287289

288290
if not self.__tarballs_info:
289291
return None
@@ -293,7 +295,6 @@ def find_tarball_for_platform(self):
293295
return self.__tarballs_info[0]
294296

295297
# Get compatible tags from Sage's Python using packaging.tags
296-
from sage_bootstrap.env import SAGE_ROOT
297298
sage_script = os.path.join(SAGE_ROOT, 'sage')
298299
if not os.path.exists(sage_script):
299300
raise RuntimeError('Sage script not found at: {0}'.format(sage_script))

0 commit comments

Comments
 (0)