Skip to content

Commit f38cb39

Browse files
authored
Remove f-strings to preserve error message on Python 2.7 (#6999)
1 parent bfbd404 commit f38cb39

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

scripts/install

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ def pip_install_packages(install_dir):
165165

166166
with cd(PACKAGES_DIR):
167167
run(
168-
f'{python} -m pip install {INSTALL_ARGS} '
169-
f'--find-links file://{PACKAGES_DIR} {cli_tarball}'
168+
'{} -m pip install {} --find-links file://{} {}'.format(
169+
python, INSTALL_ARGS, PACKAGES_DIR, cli_tarball
170+
)
170171
)
171172

172173

@@ -180,13 +181,17 @@ def _install_setup_deps(python, setup_package_dir):
180181
setup_package_dir, 'setuptools_scm'
181182
)
182183
run(
183-
f'{python} -m pip install --no-binary :all: --no-cache-dir --no-index '
184-
f'--find-links file://{setup_package_dir} {setuptools_scm_tarball}'
184+
(
185+
'{} -m pip install --no-binary :all: --no-cache-dir --no-index '
186+
'--find-links file://{} {}'
187+
).format(python, setup_package_dir, setuptools_scm_tarball)
185188
)
186189
wheel_tarball = _get_package_tarball(setup_package_dir, 'wheel')
187190
run(
188-
f'{python} -m pip install --no-binary :all: --no-cache-dir --no-index '
189-
f'--find-links file://{setup_package_dir} {wheel_tarball}'
191+
(
192+
'{} -m pip install --no-binary :all: --no-cache-dir --no-index '
193+
'--find-links file://{} {}'
194+
).format(python, setup_package_dir, wheel_tarball)
190195
)
191196

192197

0 commit comments

Comments
 (0)