Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237964 - [TRACKER] app-portage/gentoolkit-0.3.0
Summary: [TRACKER] app-portage/gentoolkit-0.3.0
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 280341 44219 67116 83080 96515 104396 112045 114086 143498 170784 181309 182990 215678 218312 231394 232635 234061 237419 248844 252903 255485 256103 259318 259337 266996 268513 268895 269071 269171 269175 269196 269454 269699 270407 272492 273096 273228 274472 275105 275362 277679 279254 281037 281050 281101 282842 284419 286479 289599 293002 293468 294675 297174 298651 299260 299970 300075 300108 300229 300931 301026 303063 303129 303152 304803 305175 305273 305747 305953 306121 307023 307647 307945 307947 307949 308709 309091 309921 311799 313295 313901 314975 315967 316961 317571 317899 319563 328453 329907 338031 341293 341537 342739 346001 346005 346519 349342 350156 352967 353430 354567 356779 363037 364081 366673 368113
Blocks:
  Show dependency tree
 
Reported: 2008-09-17 22:16 UTC by Paul Varner (RETIRED)
Modified: 2011-08-15 20:20 UTC (History)
2 users (show)

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


Attachments
setup.py (setup.py,522 bytes, text/plain)
2009-01-24 17:57 UTC, michael@smith-li.com
Details
setup.py (setup.py,1.65 KB, text/plain)
2009-01-26 01:08 UTC, michael@smith-li.com
Details
MANIFEST.in (MANIFEST.in,147 bytes, text/plain)
2009-01-26 01:09 UTC, michael@smith-li.com
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Varner (RETIRED) gentoo-dev 2008-09-17 22:16:04 UTC
Tracker bug for gentoolkit-0.2.5
Comment 1 michael@smith-li.com 2009-01-24 17:57:21 UTC
Created attachment 179571 [details]
setup.py

python distutils installer for djanderson's rewrite of equery
Comment 2 michael@smith-li.com 2009-01-26 01:08:31 UTC
Created attachment 179735 [details]
setup.py

(All of the changes described below are intended to be transparent to the lay end-user, although in some cases they may break scripts.)

Depends upon a reorganization of gentoolkit, which I describe in detail in an email to tools-portage@gentoo.org. In essence, though, it consists of the following:
 - python modules would be part of the gentoolkit package (so gentoolkit.equery, for example)
 - separate dev bits from non-dev parts
 - move non-python scripts to scripts folder
 - mangle the python stuff so it can be called from site-packages
Comment 3 michael@smith-li.com 2009-01-26 01:09:52 UTC
Created attachment 179736 [details]
MANIFEST.in

Manifest template file for distutils -- see comment #2
Comment 4 Paul Varner (RETIRED) gentoo-dev 2009-04-30 14:27:42 UTC
I'm going to do the refactoring of equery in gentoolkit-0.3 and will skip going to 0.2.5.
Comment 5 Dennis Nezic 2010-01-09 16:51:06 UTC
Will _rc9 work with python 3? Currently my equery (which uses python2.5) from app-portage/gentoolkit-0.3.0_rc8) doesn't work with my sys-apps/portage-2.1.7.16 ...

Traceback (most recent call last):
  File "/usr/bin/equery", line 32, in <module>
    from gentoolkit import equery, errors
  File "/usr/lib64/python2.5/site-packages/gentoolkit/equery/__init__.py", line 31, in <module>
    import portage
  File "/usr/lib64/portage/pym/portage/__init__.py", line 58
    except ImportError as e:
                        ^
SyntaxError: invalid syntax
Comment 6 Douglas Anderson 2010-01-09 18:23:15 UTC
(In reply to comment #5)
> Will _rc9 work with python 3? Currently my equery (which uses python2.5) from
> app-portage/gentoolkit-0.3.0_rc8) doesn't work with my
> sys-apps/portage-2.1.7.16 ...

That's an interesting problem. The short answer is, no, python 3 support isn't planned for 0.3.0.

The traceback you got is actually due to the fact that portage 2.1.7* doesn't support python 2.5 anymore. (You can see that in its DEPEND line in the ebuild). 

0.3.0 branch is tested up to py2.7 without deprecation warnings, the easiest option is to switch your default python version to 2.6 or 2.7 and reinstall gentoolkit rc8. Another option for you is to run 2to3 over the source and use python 3. I haven't tried it, but I imagine it applies cleanly. If you try this and come up with errors, please submit bugs.

I'll try to add automatic python version detection in the next major version of gentoolkit, which shouldn't take nearly as long to get out the door as this one.
Comment 7 Douglas Anderson 2010-03-09 16:07:33 UTC
Starting March 16, I'll be unavailable to do any work or even answer questions on "my parts" of gentoolkit for an extended period of time (up to 3~4 months). I'd like to propose a feature freeze starting now so that we have at least a week to really thrash the current code base around. Any new feature bugs marked for inclusion should be postponed to the next minor version. Everyone involved okay with that?
Comment 8 Paul Varner (RETIRED) gentoo-dev 2010-03-09 17:29:04 UTC
That is fine with me.  We will work forward with fixing the bugs and hopefully by the time you get available again, we will be ready for gentoolkit-0.3.1.
Comment 9 Paul Varner (RETIRED) gentoo-dev 2011-08-15 20:20:11 UTC
All depending bugs are now closed.