Better distro check in setup.py

This commit is contained in:
nsubiron 2018-10-15 16:00:54 +02:00
parent 27fbca5900
commit e52f780bd5
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ def get_libcarla_extensions():
libraries = []
if os.name == "posix":
if platform.dist()[0] == "Ubuntu":
if platform.dist()[0].lower() in ["ubuntu", "debian"]:
pwd = os.path.dirname(os.path.realpath(__file__))
pylib = "libboost_python%d%d.a" % (sys.version_info.major,
sys.version_info.minor)