Date: Sun, 29 Dec 2019 13:32:15 -0500 From: Charlie Li <ml+freebsd@vishwin.info> To: Andrea Venturoli <ml@netfence.it>, ports@freebsd.org Subject: Re: Help with porting Python libraries Message-ID: <8c5ab43f-a0c3-3a63-2291-15e3b7a2dc2c@vishwin.info> In-Reply-To: <e8f3c34d-8f2a-6044-2b48-1df5227bc732@netfence.it> References: <e8f3c34d-8f2a-6044-2b48-1df5227bc732@netfence.it>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UR071FW11kc6Xgx6o7PYphvtXyaW2go8P Content-Type: multipart/mixed; boundary="fKfMRtvcugnyg1qqz3ZtUeICWU9gEtomU"; protected-headers="v1" From: Charlie Li <ml+freebsd@vishwin.info> To: Andrea Venturoli <ml@netfence.it>, ports@freebsd.org Message-ID: <8c5ab43f-a0c3-3a63-2291-15e3b7a2dc2c@vishwin.info> Subject: Re: Help with porting Python libraries References: <e8f3c34d-8f2a-6044-2b48-1df5227bc732@netfence.it> In-Reply-To: <e8f3c34d-8f2a-6044-2b48-1df5227bc732@netfence.it> --fKfMRtvcugnyg1qqz3ZtUeICWU9gEtomU Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Andrea Venturoli wrote: > I've got a system where I had to install a few Python libraries with > pip, but I don't like this, since pkg info will not list them. >=20 > Thus I'm trying to port them, but I never ported Python libraries > before; so, before I submit my work, I thought I'd ask if someone more > experienced than me might have a look at it. >=20 > My first attempt was at IMAPClient: I copied another port > (net/py-GeoIP2) and modified it; this is the Makefile I came up with. >=20 >> # $FreeBSD$ >> >> PORTNAME=3D=C2=A0=C2=A0=C2=A0 IMAPClient >> PORTVERSION=3D=C2=A0=C2=A0=C2=A0 2.1.0 >> CATEGORIES=3D=C2=A0=C2=A0=C2=A0 mail python >> PKGNAMEPREFIX=3D=C2=A0=C2=A0=C2=A0 ${PYTHON_PKGNAMEPREFIX} >> >> MAINTAINER=3D=C2=A0=C2=A0=C2=A0 ml@netfence.it >> COMMENT=3D=C2=A0=C2=A0=C2=A0 Easy-to-use, Pythonic and complete IMAP c= lient library >> >> LICENSE=3D=C2=A0=C2=A0=C2=A0 BSD3CLAUSE >> >> RUN_DEPENDS=3D=C2=A0=C2=A0=C2=A0 ${PYTHON_PKGNAMEPREFIX}six>0:devel/py= -six@${PY_FLAVOR} >> >> GH_ACCOUNT=3D=C2=A0=C2=A0=C2=A0 mjs >> GH_PROJECT=3D=C2=A0=C2=A0=C2=A0 imapclient >> >> NO_ARCH=3D=C2=A0=C2=A0=C2=A0 yes >> USES=3D=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 python >> USE_GITHUB=3D=C2=A0=C2=A0=C2=A0 yes >> USE_PYTHON=3D=C2=A0=C2=A0=C2=A0 autoplist distutils >> >> .include <bsd.port.mk> >=20 > "port test" gives some warning, but seems to say it's ok. > Anything wrong? >=20 Since you said you installed these Python packages with pip, they are probably on pypi. In that case, it is recommended to use CHEESESHOP as the MASTER_SITE (cheeseshop is the old name for pypi itself) instead of going through github. Also recommend reading through the documentation in the "Using Python" chapter in the Porter's Handbook and the comments in Uses/python.mk to really understand everything you're doing. --=20 Charlie Li =E2=80=A6nope, still don't have an exit line. (This email address is for mailing list use; replace local-part with vishwin for off-list communication if possible) --fKfMRtvcugnyg1qqz3ZtUeICWU9gEtomU-- --UR071FW11kc6Xgx6o7PYphvtXyaW2go8P Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE/3/Cqr5a+41PbEb+jnB43vIDq2wFAl4I8TQACgkQjnB43vID q2xj+w/+I761+Dp+zL8JA+aBKfuDhJPW4fZc35hmJNIuOZisdyb+qEQsowIZlhCx Xj/gk1oBl49pTTAQzIGDRgtWr6mVhJfR7nS/VXFbWQ8LaMS3yzE/Gm13k2ZnRncY 8/NRB0rLZ4edMbJ3l0CPxzaOWUxH6HyQTs2IMMFv+WVsNd2FuCBgPi9E0hU8maQ7 Zk+u6g520x85WXtO6lD4mwExVdZAEZPNlka3ZNtU6S6pz+iIlMZhPSriYrVPHgBt 5yTFbf7vc5IVdNeJdmTmc6RQfj4LbaOb9OoH6ZKqWzINp296VqFSlqEhJ7U3wCW7 5xkdnPKs45UvP9n4JfnyCFFOUpupo/tcHDLfQnkB1nCNRg6QE1ZPOv59JhDeRdYN SudJ5s/5wTAaL1Tg3ya27jrFuHQJN181dNTE3OVfGoawUlBbqIgqmpbcfyJFcMdH 9QrF5s3T5b/XkVSxOcvxju2dzYzVKDLljM67BqBbgJ3dkvX7ji9GnKowmBg7WAMk zTFwONu3zZoWY2lLOL12Q65D0Kmr9iAvwn0xlylbDTG8ZWabuxqcifCNx5Ix7CfZ oE3LE2PxX4UxI0rKQfz9ABkl8m3wGIkwPk8VbG/DRjQ7iWjhBS0VPRdMGYkFNrTZ Evr9h32t+IKzRCC6TwX3ccEmyImrHmrJPKC8rWdo0PiqkarPH30= =8Tua -----END PGP SIGNATURE----- --UR071FW11kc6Xgx6o7PYphvtXyaW2go8P--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8c5ab43f-a0c3-3a63-2291-15e3b7a2dc2c>