mirror of
https://github.com/Z3Prover/z3
synced 2025-04-10 19:27:06 +00:00
remove use of deprecated linux_distribution
This commit is contained in:
parent
53e98a27db
commit
9cdb875ba2
|
@ -148,8 +148,8 @@ def get_os_name():
|
|||
import platform
|
||||
basic = os.uname()[0].lower()
|
||||
if basic == 'linux':
|
||||
dist = platform.linux_distribution()
|
||||
if len(dist) == 3 and len(dist[0]) > 0 and len(dist[1]) > 0:
|
||||
dist = platform.libc_ver()
|
||||
if len(dist) == 2 and len(dist[0]) > 0 and len(dist[1]) > 0:
|
||||
return '%s-%s' % (dist[0].lower(), dist[1].lower())
|
||||
else:
|
||||
return basic
|
||||
|
|
Loading…
Reference in a new issue