Skip to content

Commit

Permalink
do not add extra include directories (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: nulano <nulano@nulano.eu>
  • Loading branch information
ax3l and nulano committed Oct 14, 2020
1 parent 70cf54f commit 115add2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@ def build_extensions(self):
library_dirs = []
include_dirs = []

_add_directory(include_dirs, "src/libImaging")

pkg_config = None
if _cmd_exists(os.environ.get("PKG_CONFIG", "pkg-config")):
pkg_config = _pkg_config
Expand Down Expand Up @@ -765,7 +763,7 @@ def build_extensions(self):
self._remove_extension("PIL._webp")

tk_libs = ["psapi"] if sys.platform == "win32" else []
self._update_extension("PIL._imagingtk", tk_libs, include_dirs=["src/Tk"])
self._update_extension("PIL._imagingtk", tk_libs)

build_ext.build_extensions(self)

Expand Down
2 changes: 1 addition & 1 deletion src/_imagingft.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#define FT_ERROR_START_LIST {
#define FT_ERROR_END_LIST { 0, 0 } };

#include <raqm.h>
#include "libImaging/raqm.h"

#define LAYOUT_FALLBACK 0
#define LAYOUT_RAQM 1
Expand Down

0 comments on commit 115add2

Please sign in to comment.