Skip to content

Commit

Permalink
Merge pull request #10 from AnacondaRecipes/fix_imports
Browse files Browse the repository at this point in the history
Fix imports
  • Loading branch information
mcg1969 committed Jul 14, 2022
2 parents c40b8b4 + 4fb2220 commit 0505871
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions recipe/meta.yaml
Expand Up @@ -8,11 +8,11 @@ package:
source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/Pillow-{{ version }}.tar.gz
sha256: 75e636fd3e0fb872693f23ccb8a5ff2cd578801251f3a4f6854c6a5d437d3c04
patches: # [unix]
patches:
- disable_detect.patch # [unix]

build:
number: 0
number: 1
skip: true # [py<37]
ignore_run_exports:
- tk
Expand All @@ -30,7 +30,13 @@ requirements:
host:
- python
- pip
- setuptools
# 2022/7/14: The issue was observed with 'import PIL.Image' in v9.2.0:
# Additional double quotes for Core version: "9.2.0" on win-64 for python 3.7 and python 3.8.
# The last version of pillow we built (v9.0.1) was built using conda-build-3.21.7,
# Looking at the conda-build changelog for v3.21.9, it was noticed some changes to support the new setuptools >=60.0
# Check if the issue persists in the next releases
- setuptools <60 # [win and (py==37 or py==38)]
- setuptools # [not (win and (py==37 or py==38))]
- wheel
# Required by default
- jpeg
Expand All @@ -57,7 +63,7 @@ requirements:
test:
imports:
- PIL
- PIL.Image # [not win]
- PIL.Image
- PIL.ImageCms # [not win]
requires:
- pip
Expand Down

0 comments on commit 0505871

Please sign in to comment.