Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix imports #10

Merged
merged 3 commits into from Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
25 changes: 25 additions & 0 deletions recipe/fix_version.patch
@@ -0,0 +1,25 @@
From e2764a81ce15a9973ab9936c4a221e73569ad401 Mon Sep 17 00:00:00 2001
From: Serhii Kupriienko
Date: Thu, 14 Jul 2022 09:00:21 +0000
Subject: [PATCH] Fix version for python 3.7 and 3.8

---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 2701aa1c..bbce2cd6 100755
--- a/setup.py
+++ b/setup.py
@@ -851,7 +851,7 @@ class pil_build_ext(build_ext):
and sys.version_info < (3, 9)
and not (PLATFORM_PYPY or PLATFORM_MINGW)
):
- defs.append(("PILLOW_VERSION", f'"\\"{PILLOW_VERSION}\\""'))
+ defs.append(("PILLOW_VERSION", f'"{PILLOW_VERSION}"'))
else:
defs.append(("PILLOW_VERSION", f'"{PILLOW_VERSION}"'))

--
2.34.1

8 changes: 5 additions & 3 deletions recipe/meta.yaml
Expand Up @@ -8,11 +8,12 @@ package:
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/Pillow-{{ version }}.tar.gz
sha256: 75e636fd3e0fb872693f23ccb8a5ff2cd578801251f3a4f6854c6a5d437d3c04
patches: # [unix]
patches:
- disable_detect.patch # [unix]
- fix_version.patch # [win]

build:
number: 0
number: 1
skip: true # [py<37]
ignore_run_exports:
- tk
Expand All @@ -27,6 +28,7 @@ requirements:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- patch # [unix]
- m2-patch # [win]
host:
- python
- pip
Expand Down Expand Up @@ -57,7 +59,7 @@ requirements:
test:
imports:
- PIL
- PIL.Image # [not win]
- PIL.Image
- PIL.ImageCms # [not win]
requires:
- pip
Expand Down