Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 261757 - Remove python_tkinter_exists/distutils_python_tkinter in favour of USE dependencies
Summary: Remove python_tkinter_exists/distutils_python_tkinter in favour of USE depend...
Status: RESOLVED DUPLICATE of bug 239930
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-08 19:53 UTC by Justin Lecher (RETIRED)
Modified: 2009-08-14 22:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python_tkinter_exists.patch (python_tkinter_exists.patch,10.12 KB, text/plain)
2009-03-08 19:54 UTC, Justin Lecher (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2009-03-08 19:53:43 UTC
Ebuilds which use things like:

    if ! built_with_use dev-lang/python tk; then
        eerror "Please reemerge dev-lang/python with 'tk' support or pymol will"
        eerror "not work. In order to fix this, execute the following:"
        eerror "echo \"dev-lang/python tk\" >> /etc/portage/package.use"
        eerror "and reemerge dev-lang/python before emerging pymol."
        die "requires dev-lang/python with use-flag 'tk'!!"
    fi


app-cdr/cdcover/cdcover-0.7.3.ebuild:
app-text/txt2tags/txt2tags-2.4.ebuild:
app-text/txt2tags/txt2tags-2.5.ebuild:
dev-python/imaging/imaging-1.1.6.ebuild:
dev-python/pylint/pylint-0.13.1.ebuild:
dev-python/pylint/pylint-0.14.0.ebuild:
dev-python/pylint/pylint-0.15.2.ebuild:
dev-python/pyopengl/pyopengl-2.0.0.44.ebuild:
media-gfx/asymptote/asymptote-1.29.ebuild:
media-video/tovid/tovid-0.31-r1.ebuild:
sci-chemistry/pymol/pymol-1.1-r2.ebuild:
sci-chemistry/sparky/sparky-3.113.ebuild:
sci-physics/camfr/camfr-20070717-r1.ebuild:

The following patch fix all that.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-03-08 19:54:30 UTC
Created attachment 184356 [details]
python_tkinter_exists.patch

the patch
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-03-08 20:05:02 UTC
Have fun fixing all those packages :)

Reassigning to python herd.
Comment 3 Daniel Pielmeier gentoo-dev 2009-03-08 20:31:41 UTC
python_tkinter_exists is just built_with_use coming in another flavor and I see no advantage of using it instead. The ebuild will still abort at execution time and not at dependency calculation. I think this cases can be expressed with variants of a use dependency like dev-lang/python[tk=].
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2009-03-08 21:24:39 UTC
As discussed, there are only three ebuilds which already use python_tkinter_exists

app-editors/leo/leo-4.2.ebuild:
media-gfx/skencil/skencil-0.6.18_pre20080519.ebuild:
net-im/msnlib/msnlib-3.6.ebuild:

Probably better to remove the function from the ebuilds and the eclass and use use-deps instead in general.
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2009-03-09 08:52:22 UTC
Those ebuild use python

dev-python/editobj/editobj-0.5.3.ebuild
dev-python/editobj/editobj-0.5.6.ebuild
dev-python/matplotlib/matplotlib-0.91.2.ebuild
dev-python/matplotlib/matplotlib-0.91.4.ebuild
dev-python/pmw/pmw-1.2.ebuild
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2009-03-10 10:06:08 UTC
(In reply to comment #5)
> Those ebuild use python
> 
> dev-python/editobj/editobj-0.5.3.ebuild
> dev-python/editobj/editobj-0.5.6.ebuild
> dev-python/matplotlib/matplotlib-0.91.2.ebuild
> dev-python/matplotlib/matplotlib-0.91.4.ebuild
> dev-python/pmw/pmw-1.2.ebuild
> 

I meant they use distutils_tkinter_exists
Comment 7 Daniel Pielmeier gentoo-dev 2009-03-18 18:56:36 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Those ebuild use python
> > 
> > dev-python/editobj/editobj-0.5.3.ebuild
> > dev-python/editobj/editobj-0.5.6.ebuild
> > dev-python/matplotlib/matplotlib-0.91.2.ebuild
> > dev-python/matplotlib/matplotlib-0.91.4.ebuild
> > dev-python/pmw/pmw-1.2.ebuild
> > 
> 
> I meant they use distutils_tkinter_exists
> 

From looking closer at those ebuilds, all of them already have a newer version that is converted to eapi 2 and use dependencies. So it is just a matter of removing the old versions if they are not needed anymore.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-04 07:06:41 UTC
Bad idea guys. portage and python *really* need to remain at a very lagging EAPI level otherwise people will not be able to upgrade to never versions of portage. It is already bad that python is EAPI=1...now new versions (py-2.6) are EAPI=2. =(
Comment 9 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-14 22:51:36 UTC

*** This bug has been marked as a duplicate of bug 239930 ***