From 444598eaca70437093d761fd9efcc5514be4786e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 7 Sep 2011 17:08:35 +0300 Subject: [PATCH] Fix library_dirs for sys.platform="linux3". --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3b76127bb..7a86335de 100644 --- a/setup.py +++ b/setup.py @@ -116,7 +116,7 @@ class pil_build_ext(build_ext): _add_directory(library_dirs, "/usr/x11/lib") _add_directory(include_dirs, "/usr/x11/include") - elif sys.platform == "linux2": + elif sys.platform.startswith("linux"): if platform.processor() == "x86_64": _add_directory(library_dirs, "/lib64") _add_directory(library_dirs, "/usr/lib64")