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
I just committed this somewhat ugly code in twisted-core-13.0.0-r2.ebuild.

    # Bug 299736
    local pyver=$("${PYTHON}" -c 'import sys; print("%d.%d" %
    touch "${D%/}${PYTHON_SITEDIR}/Twisted-${PV}-py${pyver}.egg-info"

This takes the place of a python_get_version -l call from the old python.eclass.

Is this something that we should provide in the new eclasses?


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