Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pillow: add Python3 variant and update to 6.1.0
- Add @commodo as maintainer - Add patch when looking for Windows libtiff Co-Authored-By: Jeffery To <jeffery.to@gmail.com> Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
- Loading branch information
Showing
3 changed files
with
95 additions
and
204 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
42 changes: 42 additions & 0 deletions
42
...hon/pillow/patches/0001-setup.py-use-host.platform-when-looking-for-Windows-libtiff.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
From 6011697c8cfc814087bf4b7f620ef5d1e3fbc130 Mon Sep 17 00:00:00 2001 | ||
From: Josef Schlehofer <josef.schlehofer@nic.cz> | ||
Date: Tue, 9 Jul 2019 21:56:59 +0200 | ||
Subject: [PATCH] setup.py: use host.platform when looking for Windows libtiff | ||
|
||
--- | ||
setup.py | 6 ++++-- | ||
1 file changed, 4 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/setup.py b/setup.py | ||
index 5ceae34..0f929ea 100755 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -20,6 +20,8 @@ from distutils.command.build_ext import build_ext | ||
|
||
from setuptools import Extension, setup | ||
|
||
+host_platform = "linux" | ||
+ | ||
# monkey patch import hook. Even though flake8 says it's not used, it is. | ||
# comment this out to disable multi threaded builds. | ||
import mp_compile | ||
@@ -606,7 +608,7 @@ class pil_build_ext(build_ext): | ||
if _find_include_file(self, "tiff.h"): | ||
if _find_library_file(self, "tiff"): | ||
feature.tiff = "tiff" | ||
- if sys.platform in ["win32", "darwin"] and _find_library_file( | ||
+ if host.platform in ["win32", "darwin"] and _find_library_file( | ||
self, "libtiff" | ||
): | ||
feature.tiff = "libtiff" | ||
@@ -785,7 +787,7 @@ class pil_build_ext(build_ext): | ||
print("-" * 68) | ||
print("version Pillow %s" % PILLOW_VERSION) | ||
v = sys.version.split("[") | ||
- print("platform %s %s" % (sys.platform, v[0].strip())) | ||
+ print("platform %s %s" % (host_platform, v[0].strip())) | ||
for v in v[1:]: | ||
print(" [%s" % v.strip()) | ||
print("-" * 68) | ||
-- | ||
2.20.1 |
This file was deleted.
Oops, something went wrong.