Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: Mike Gilbert <floppym@g.o>
Cc: gentoo-python <gentoo-python@l.g.o>
Subject: Re: [gentoo-python] python_get_version replacement
Date: Mon, 26 Aug 2013 20:21:12
Message-Id: 20130826222111.5959fbf4@gentoo.org
In Reply to: [gentoo-python] python_get_version replacement by Mike Gilbert
1 Dnia 2013-08-25, o godz. 21:51:17
2 Mike Gilbert <floppym@g.o> napisał(a):
3
4 > I just committed this somewhat ugly code in twisted-core-13.0.0-r2.ebuild.
5 >
6 > # Bug 299736
7 > local pyver=$("${PYTHON}" -c 'import sys; print("%d.%d" %
8 > sys.version_info[:2])')
9 > touch "${D%/}${PYTHON_SITEDIR}/Twisted-${PV}-py${pyver}.egg-info"
10 >
11 > This takes the place of a python_get_version -l call from the old python.eclass.
12 >
13 > Is this something that we should provide in the new eclasses?
14
15 I don't really feel like we should be touching egg-info like this.
16
17 By the way, doesn't the 'bundle' egg-info imply pulling in all Twisted
18 packages rather than -core itself?
19
20
21 --
22 Best regards,
23 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-python] python_get_version replacement Mike Gilbert <floppym@g.o>