List Archive: gentoo-soc
| Navigation: |
|
Lists:
gentoo-soc:
< Prev
By Thread
Next >
< Prev
By Date
Next >
|
| Headers: |
|
To:
|
Gentoo SoC <gentoo-soc@g.o>, Gentoo Dev <gentoo-dev@g.o>, Sébastien Fabbro <sebfabbro@...>
|
|
From:
|
Sérgio Almeida <mephx.x@...>
|
|
Subject:
|
Re: Progress on Universal Select Tool
|
|
Date:
|
Mon, 13 Jul 2009 16:36:10 +0100
|
|
Hello,
Missed a weekly report, busy week. Will try to post 2 reports this week
as I am also working twice as much time.
Progress since last report:
* Converted all modules into plain python.
* uselect got even faster
* symlinking dependencies (ex: ruby and ruby-gems)
* several links per action (ex: bash-completion)
New module example:
# Python Module
from umodule import *
module = Module(name = "python", description = "Python Version
Switcher", version = "0.1", author ="mephx.x@...") # We define the
module
bin = Action (name = 'bin', description = "Change Python's Version",
type = "sym") # Define a Symlinking Action
python = Link(alias = "python", target = "/usr/bin/python", prefix =
"/usr/bin/", regexp = "python([0-9]+\.[0-9]+$)")
python_config = Link(alias = "python-config", target =
"/usr/bin/python-config", prefix = "/usr/bin/", regexp =
"python([0-9]+\.[0-9]+)-config$")
bin.add_link(python_config) # For inheritance
bin.add_link(python) # Adding The Link to the action
module.add_action(bin) #Adding the action to the module
# End
Only 1 module per file and modules are retrieved via the variable
"module" on each module. I couldn't find out a better way of doing this
but I'm sure there is one. Anyone?
This seems a bit messy but will be much easier to create support for
markup languages (I'm starting to love the idea of JSON).
This is a very good progress but brought a problem. Managing symlinking
dependencies (tree-like) became a huge headache. (Due to infinite
dependency capabilities). Suggestions are welcome in this part.
At this point I am creating a new way of managing several targets and
it's dependencies automatically in an indexed way either for easy
displaying and also for easy choosing. (No indexing is beeing done right
now, just plain object count)
I plan to start the profiling capabilities later this week.
Cheers,
Sérgio
--
Sérgio Almeida - mephx.x@...
mephx @ freenode
|
| Attachment: |
|
signature.asc (This is a digitally signed message part)
|
|