Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setup.py: Only overwrite MuPDF's include/mupdf/fitz/config.h on Windows.
This avoids modifying a local MuPDF tree when developing. There is no need on non-Windows because we already predefine TOFU_CJK_EXT in XCFLAGS. On Windows there is no equivalent to XCFLAGS so for simplicity we continue to overwrite MuPDF's config.h. For completeness we now also predefine TOFU_CJK_EXT in XCXXFLAGS for the C++ bindings compiles, although in practise this will not make any difference. Also modify env_add() to default to adding to os.environ[name] if name is not in env, so we always append to existing environment variable if available.
- Loading branch information
1 parent
ad3f92b
commit 3b0ab8d
Showing
1 changed file
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters