Skip to content

Commit df8d2be

Browse files
committed
minor: move declaration closer to use
1 parent 8645443 commit df8d2be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/private/pypi/extension.bzl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def _create_whl_repos(
164164
hub.name,
165165
version_label(pip_attr.python_version),
166166
)
167-
major_minor = _major_minor_version(pip_attr.python_version)
168167

169168
whl_modifications = {}
170169
if pip_attr.whl_modifications != None:
@@ -315,7 +314,7 @@ def _create_whl_repos(
315314
get_index_urls != None, # defaults to True if the get_index_urls is defined
316315
),
317316
auth_patterns = config.auth_patterns or pip_attr.auth_patterns,
318-
python_version = major_minor,
317+
python_version = _major_minor_version(pip_attr.python_version),
319318
is_multiple_versions = whl.is_multiple_versions,
320319
enable_pipstar = config.enable_pipstar,
321320
)

0 commit comments

Comments
 (0)