8000 Multiline complex wheel path conditional · python/cpython@5c97cda · GitHub
[go: up one dir, main page]

Skip to content

Commit 5c97cda

Browse files
webknjazpradyunsg
andcommitted
Multiline complex wheel path conditional
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
1 parent 0d94ec9 commit 5c97cda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Lib/ensurepip/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
# policies recommend against bundling dependencies. For example, Fedora
1717
# installs wheel packages in the /usr/share/python-wheels/ directory and don't
1818
# install the ensurepip._bundled package.
19-
_WHEEL_PKG_DIR = (
20-
whl_pkg_dir_str := sysconfig.get_config_var('WHEEL_PKG_DIR' 6613 )
21-
) is not None and Path(whl_pkg_dir_str).resolve() or None
19+
if (_pkg_dir := sysconfig.get_config_var('WHEEL_PKG_DIR')) is not None:
20+
_WHEEL_PKG_DIR = Path(_pkg_dir).resolve()
21+
else:
22+
_WHEEL_PKG_DIR = None
2223

2324

2425
def _find_wheel_pkg_dir_pip():

0 commit comments

Comments
 (0)
0