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
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" %
sys.version_info[:2])')
    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?

Replies

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