public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Hamish McIntyre-Bhatty <hamishmb@live.co.uk>
To: "cygwin-apps@cygwin.com" <cygwin-apps@cygwin.com>
Subject: [ITA] python-imaging
Date: Wed, 8 Jul 2020 15:59:36 +0100	[thread overview]
Message-ID: <AM0PR05MB4898EFB50CFFA20AA3A3E90CE7670@AM0PR05MB4898.eurprd05.prod.outlook.com> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 589 bytes --]

Hello,

This email signals my intent to adopt python-imaging
(https://pypi.org/project/Pillow) for Cygwin, as after being informed by
Yaakov I have realised there was already a Cygwin package for this.

I wish to package this because I have found that PyCrust (built with
wxPython) depends on it and there is a much newer version than is
currently available for Cygwin.

Attached is my cygport file. As usual, the test packages are available
at https://www.hamishmb.com/files/cygwin-temp/.

If anyone has feedback I'd appreciate it very much.

Hamish McIntyre-Bhatty




[-- Attachment #1.1.2: python-imaging.cygport --]
[-- Type: text/plain, Size: 4306 bytes --]

ORIG_PN="Pillow"
inherit python-wheel

NAME="python-imaging"
VERSION=7.2.0
RELEASE=1
CATEGORY="Python"
SUMMARY="Python Imaging Library"
DESCRIPTION="The Python Imaging Library (PIL) adds image processing capabilities
to your Python interpreter. This library supports many file formats, and provides
powerful image processing and graphics capabilities."
HOMEPAGE="https://python-pillow.github.io/"

SRC_URI="https://files.pythonhosted.org/packages/3e/02/b09732ca4b14405ff159c470a612979acfc6e8645dc32f83ea0129709f7a/Pillow-7.2.0.tar.gz"
SRC_DIR="Pillow-${VERSION}"
PATCH_URI=""

BUILD_REQUIRES="libjpeg-devel libjpeg8 zlib-devel zlib0 libtiff-devel libtiff6 libfreetype-devel libfreetype6 liblcms2-devel lcms2 libwebp libwebp-devel tcl-devel tcl libimagequant-devel libimagequant0 libraqm-devel libraqm0 libX11-xcb-devel libX11-xcb1 libxcb-devel libxcb1 python36 python36-devel python36-setuptools python36-wheel python36-pip python37 python37-devel python37-setuptools python37-wheel python37-pip python38 python38-devel python38-setuptools python38-wheel python38-pip"

DIFF_EXCLUDES="build"

PKG_NAMES=" python36-imaging python36-imaging-tk"
PKG_NAMES+=" python37-imaging python37-imaging-tk"
PKG_NAMES+=" python38-imaging python38-imaging-tk"

# ImageQt no longer imports PyQt or PySide, but simply integrates with
# whatever has already been imported.  Therefore there is no need to
# break it out separately, as it has no hard dependencies of its own.
python36_imaging_OBSOLETES+=" python3-imaging-devel python3-imaging-qt"
python36_imaging_CONTENTS="
	--exclude=_imagingtk*
	--exclude=ImageTk*
	--exclude=SpiderImagePlugin*
	usr/lib/python3.6/site-packages/PIL/
    usr/lib/python3.6/site-packages/Pillow-${VERSION}-py3.6.egg-info/
    usr/share/doc/python36-imaging/
"
python36_imaging_tk_OBSOLETES="python3-imaging-tk"
python36_imaging_tk_REQUIRES="python36-tkinter"
python36_imaging_tk_CONTENTS="
	usr/lib/python3.6/site-packages/PIL/_imagingtk*
	usr/lib/python3.6/site-packages/PIL/ImageTk*
	usr/lib/python3.6/site-packages/PIL/SpiderImagePlugin*
	usr/lib/python3.6/site-packages/PIL/__pycache__/ImageTk*
	usr/lib/python3.6/site-packages/PIL/__pycache__/SpiderImagePlugin*
"
python37_imaging_CONTENTS="
	--exclude=_imagingtk*
	--exclude=ImageTk*
	--exclude=SpiderImagePlugin*
	${python37_imaging_CONTENTS}
"
python37_imaging_tk_REQUIRES="python37-tkinter"
python37_imaging_tk_CONTENTS="
	usr/lib/python3.7/site-packages/PIL/_imagingtk*
	usr/lib/python3.7/site-packages/PIL/ImageTk*
	usr/lib/python3.7/site-packages/PIL/SpiderImagePlugin*
	usr/lib/python3.7/site-packages/PIL/__pycache__/ImageTk*
	usr/lib/python3.7/site-packages/PIL/__pycache__/SpiderImagePlugin*
"
python38_imaging_CONTENTS="
	--exclude=_imagingtk*
	--exclude=ImageTk*
	--exclude=SpiderImagePlugin*
	${python38_imaging_CONTENTS}
"
python38_imaging_tk_REQUIRES="python38-tkinter"
python38_imaging_tk_CONTENTS="
	usr/lib/python3.8/site-packages/PIL/_imagingtk*
	usr/lib/python3.8/site-packages/PIL/ImageTk*
	usr/lib/python3.8/site-packages/PIL/SpiderImagePlugin*
	usr/lib/python3.8/site-packages/PIL/__pycache__/ImageTk*
	usr/lib/python3.8/site-packages/PIL/__pycache__/SpiderImagePlugin*
"
python_imaging_debuginfo_OBSOLETES="python3-imaging-debuginfo"
PKG_IGNORE="usr/share/doc/python*-imaging-*/"

src_compile() {
	lndirs
	cd ${B}

    echo "Building for Python 3.6..."
	python3.6 setup.py build

    echo "Building for Python 3.7..."
	python3.7 setup.py build

    echo "Building for Python 3.8..."
	python3.8 setup.py build

}

src_test() {
    cd ${B}

    PYTHONPATH="build/lib.cygwin-$(uname -r | sed -e 's|s*(.*||')-$(uname -m)-3.6/" python3.6 selftest.py
    PYTHONPATH="build/lib.cygwin-$(uname -r | sed -e 's|s*(.*||')-$(uname -m)-3.7/" python3.7 selftest.py
    PYTHONPATH="build/lib.cygwin-$(uname -r | sed -e 's|s*(.*||')-$(uname -m)-3.8/" python3.8 selftest.py
}

src_install() {
	cd ${B}

    #------------ Python 3.6 ----------------
	python3.6 setup.py install --single-version-externally-managed --root ${D}

    #------------ Python 3.7 ----------------
    python3.7 setup.py install --single-version-externally-managed --root ${D}

    #------------ Python 3.8 ----------------
    python3.8 setup.py install --single-version-externally-managed --root ${D} --install-lib usr/lib/python3.8/site-packages/

}


[-- Attachment #1.1.3: 0x87B761FE07F548D6.asc --]
[-- Type: application/pgp-keys, Size: 3235 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2020-07-08 14:59 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-08 14:59 Hamish McIntyre-Bhatty [this message]
     [not found] ` <136eb766-af71-c758-186b-fd9c98214642@aol.com>
2020-07-10  0:20   ` airplanemath
2020-07-10 10:26     ` Hamish McIntyre-Bhatty
2020-07-10 12:24       ` marco atzeri
2020-07-14 14:41         ` Hamish McIntyre-Bhatty
2020-07-17 21:03           ` Hamish McIntyre-Bhatty
2020-07-17 21:11             ` Brian Inglis
2020-07-17 21:25             ` Marco Atzeri
2020-07-18 20:07               ` Marco Atzeri
2020-07-19 16:36                 ` Hamish McIntyre-Bhatty
2020-07-19 17:09                   ` Marco Atzeri
2020-07-19 17:26                     ` Hamish McIntyre-Bhatty
2020-07-19 19:09                       ` Marco Atzeri
2020-07-21 16:04                         ` Hamish McIntyre-Bhatty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR05MB4898EFB50CFFA20AA3A3E90CE7670@AM0PR05MB4898.eurprd05.prod.outlook.com \
    --to=hamishmb@live.co.uk \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).