Gentoo Archives: gentoo-python

From: Mike Gilbert <floppym@g.o>
To: gentoo-python <gentoo-python@l.g.o>
Subject: [gentoo-python] python_get_version replacement
Date: Mon, 26 Aug 2013 01:51:22
Message-Id: CAJ0EP432n_s-Nn=+ChK=WVuxMsbv14pOtY7xwqSzQffho_UCVQ@mail.gmail.com
1 I just committed this somewhat ugly code in twisted-core-13.0.0-r2.ebuild.
2
3 # Bug 299736
4 local pyver=$("${PYTHON}" -c 'import sys; print("%d.%d" %
5 sys.version_info[:2])')
6 touch "${D%/}${PYTHON_SITEDIR}/Twisted-${PV}-py${pyver}.egg-info"
7
8 This takes the place of a python_get_version -l call from the old python.eclass.
9
10 Is this something that we should provide in the new eclasses?

Replies

Subject Author
Re: [gentoo-python] python_get_version replacement "Michał Górny" <mgorny@g.o>