public inbox for gentoo-python@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-python] python_get_version replacement
@ 2013-08-26  1:51 Mike Gilbert
  2013-08-26 20:21 ` Michał Górny
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Gilbert @ 2013-08-26  1:51 UTC (permalink / raw
  To: gentoo-python

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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-26 21:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26  1:51 [gentoo-python] python_get_version replacement Mike Gilbert
2013-08-26 20:21 ` Michał Górny
2013-08-26 21:11   ` Mike Gilbert
2013-08-26 21:22     ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox