Skip to content

Commit c663f7e

Browse files
author
Christopher Doris
committed
libc bug
1 parent 9127da9 commit c663f7e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

juliacall/install.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,18 @@ def get_arch():
4242
arch = platform.machine().lower()
4343
return arch_aliases.get(arch.lower(), arch)
4444

45+
libc_aliases = {
46+
'glibc': 'gnu',
47+
}
48+
49+
def get_libc():
50+
libc = platform.libc_ver()[0].lower()
51+
return libc_aliases.get(libc, libc)
52+
4553
def compatible_julia_versions(compat=None, stable=True, kind=None):
4654
os = get_os()
4755
arch = get_arch()
48-
libc, _ = platform.libc_ver()
56+
libc = get_libc()
4957
if libc == '' and os == 'linux':
5058
warnings.warn('could not determine libc version - assuming glibc')
5159
libc = 'gnu'

0 commit comments

Comments
 (0)