Skip to content

Commit 1ec0d11

Browse files
committed
patch ensurepip: replace platform.libc_ver with stub
1 parent 49266e1 commit 1ec0d11

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

graalpython/lib-python/3/ensurepip/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ def _run_pip(args, additional_paths=None):
2323
if additional_paths is not None:
2424
sys.path = additional_paths + sys.path
2525

26+
# Truffle patch: begin
27+
import platform
28+
29+
def libc_ver(executable=sys.executable, lib='', version='', chunksize=16384):
30+
return lib, None
31+
setattr(platform, 'libc_ver', libc_ver)
32+
# End Truffle patch
33+
2634
# Install the bundled software
2735
import pip._internal
2836
return pip._internal.main(args)

0 commit comments

Comments
 (0)