public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] [PATCH] Eclass support for pypy-bin
@ 2013-07-22  9:49 Michał Górny
  2013-07-22  9:50 ` [gentoo-python] [PATCH 1/6] [python-any-r1] use PYTHON_PKG_DEP for generating deps Michał Górny
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: Michał Górny @ 2013-07-22  9:49 UTC (permalink / raw
  To: gentoo-python

[-- Attachment #1: Type: text/plain, Size: 1761 bytes --]

Hello,

Since we're practically ready to start building pypy-bin packages, we
should address the compatibility within eclasses.

I'm sending six patches that fix all the Python eclasses (-r1, -ng
and the old one) to support pypy-bin. It should be noted that some
ebuilds which use ugly unsupported hackery (sys-apps/portage) will
still need to be updated by hand.

And all users who had pypy enabled before will need to rebuild all
the packages that depend on it, or hack their *DEPEND in vardb to allow
pypy-bin.

Patches will be sent as replies to this mail. Short summary follows.


python-any-r1.eclass:

1) use PYTHON_PKG_DEP for generating deps

I must have missed it when converting the other two eclasses.

2) replace has_version with simple '-x' check

That makes it simpler, faster and compatible with PYTHON_PKG_DEP
becoming any-of dep.


python-utils-r1.eclass:

3) simple reordering of PYTHON_PKG_DEP

4) generate any-of dep for || ( pypy pypy-bin )

Which basically makes all the eclasses compatible.


python-distutils-ng.eclass:

5) add any-of dep to *DEPEND.

Although it's doomed, it's fairly easy to add the support to it.


python.eclass:

6) hack python_get_implementation_package() for pypy-bin

It's not used anywhere but in the eclass itself. It's used solely for
passing into 'has_version' to do integrity checks or PYTHON_USE_WITH
checks in ancient EAPIs.

I don't think it's worth to address this deprecated eclass thoroughly.
Therefore, the patch just uses has_version to see if pypy-bin is
installed, and outputs 'pypy-bin' or 'pypy' atom appropriately.

Also, I don't see any place outputting pypy dep. I guess it just
doesn't do it.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-07-27 11:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22  9:49 [gentoo-python] [PATCH] Eclass support for pypy-bin Michał Górny
2013-07-22  9:50 ` [gentoo-python] [PATCH 1/6] [python-any-r1] use PYTHON_PKG_DEP for generating deps Michał Górny
2013-07-27  9:39   ` Michał Górny
2013-07-22  9:51 ` [gentoo-python] [PATCH 2/6] [python-any-r1] do not use has_version() for interpreter checks Michał Górny
2013-07-27  9:45   ` Michał Górny
2013-07-22  9:51 ` [gentoo-python] [PATCH 3/6] [python-utils-r1] Reorder PYTHON_PKG_DEP gen Michał Górny
2013-07-22  9:51 ` [gentoo-python] [PATCH 4/6] [python-utils-r1] Support pypy-bin in PYTHON_PKG_DEP Michał Górny
2013-07-22  9:51 ` [gentoo-python] [PATCH 5/6] [python-distutils-ng] Support pypy-bin Michał Górny
2013-07-22  9:51 ` [gentoo-python] [PATCH 6/6] [python.eclass] Support pypy-bin in python_get_implement Michał Górny
2013-07-27 11:22 ` [gentoo-python] [PATCH] Eclass support for pypy-bin Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox