Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: gentoo-python <gentoo-python@l.g.o>
Subject: [gentoo-python] [PATCH] Don't warn about USE_PYTHON when the package does not support typical python versions
Date: Thu, 03 Jan 2013 23:13:48
Message-Id: 50E610A0.7010205@gentoo.org
1 Attached is a quick and dirty patch to prevent the typical user from
2 being advised to set USE_PYTHON for packages which support both python2
3 and/or python3, but not 2.7 or 3.2.
4
5 If someone can come up with a better fix, by all means send it my way.
6
7 For example, see the message produced by dev-python/simplejson-3.0.4-r1.
8
9 * It seems that you need to set USE_PYTHON to make sure that legacy
10 * packages will be built with respect to PYTHON_TARGETS correctly:
11 *
12 * USE_PYTHON='2.7'
13 *
14 * Please note that after changing the USE_PYTHON variable, you may need
15 * to run 'python-updater' to rebuild affected packages.
16 *
17 * For more information on python.eclass compatibility, please see
18 * the appropriate python-r1 User's Guide chapter [1].
19 *
20 * [1]
21 http://www.gentoo.org/proj/en/Python/python-r1/user-guide.xml#doc_chap2

Attachments

File name MIME type
python-r1-use-python-hack.patch text/plain
signature.asc application/pgp-signature