Last active
January 25, 2019 20:12
-
-
Save fish2000/e9167ebbeb9889f10ad7ec434b866038 to your computer and use it in GitHub Desktop.
How to build Pillow’s extensions in-place for testing
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
CFLAGS="-I$(brew --prefix zlib)/include -I$(brew --prefix jpeg)/include -I$(brew --prefix openjpeg)/include -I$(brew --prefix webp)/include -I$(brew --prefix lcms2)/include -I$(brew --prefix libtiff)/include -I$(brew --prefix freetype)/include -I$(brew --prefix libimagequant)/include" python ./setup.py build_ext --inplace --enable-zlib --enable-jpeg --enable-tiff --enable-freetype --enable-lcms --enable-webp --enable-webpmux --enable-jpeg2000 --enable-imagequant |
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
PYTHONPATH=".:src:src/PIL" python selftest.py |
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
PYTHONPATH=".:src:src/PIL" pytest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment