Skip to content

Commit 5b38c91

Browse files
committed
fix to make build.py compatible with python 3.7
1 parent bacec60 commit 5b38c91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def target_platform():
121121
if platform_string == "linux":
122122
# Need to inspect the /etc/os-release file to get
123123
# the distribution of linux
124-
id_like_list = platform.freedesktop_os_release()["ID_LIKE"].split()
124+
id_like_list = distro.like().split()
125125
if "debian" in id_like_list:
126126
return "linux"
127127
else:

0 commit comments

Comments
 (0)