From e5b6018b469a0f9f469be1fe6f9ad8db37dc1f9f Mon Sep 17 00:00:00 2001 From: Benjamin Le Forestier Date: Sun, 27 Dec 2015 20:43:27 +0100 Subject: [PATCH] add include and library directories for freebsd --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 83beb3478..3b65b93c6 100644 --- a/setup.py +++ b/setup.py @@ -302,6 +302,10 @@ class pil_build_ext(build_ext): elif sys.platform.startswith("gnu"): self.add_multiarch_paths() + elif sys.platform.startswith("freebsd"): + _add_directory(library_dirs, "/usr/local/lib") + _add_directory(include_dirs, "/usr/local/include") + elif sys.platform.startswith("netbsd"): _add_directory(library_dirs, "/usr/pkg/lib") _add_directory(include_dirs, "/usr/pkg/include")