1 |
Hello, |
2 |
|
3 |
Missed a weekly report, busy week. Will try to post 2 reports this week |
4 |
as I am also working twice as much time. |
5 |
|
6 |
Progress since last report: |
7 |
|
8 |
* Converted all modules into plain python. |
9 |
* uselect got even faster |
10 |
* symlinking dependencies (ex: ruby and ruby-gems) |
11 |
* several links per action (ex: bash-completion) |
12 |
|
13 |
New module example: |
14 |
|
15 |
# Python Module |
16 |
|
17 |
from umodule import * |
18 |
|
19 |
module = Module(name = "python", description = "Python Version |
20 |
Switcher", version = "0.1", author ="mephx.x@×××××.com") # We define the |
21 |
module |
22 |
bin = Action (name = 'bin', description = "Change Python's Version", |
23 |
type = "sym") # Define a Symlinking Action |
24 |
|
25 |
python = Link(alias = "python", target = "/usr/bin/python", prefix = |
26 |
"/usr/bin/", regexp = "python([0-9]+\.[0-9]+$)") |
27 |
python_config = Link(alias = "python-config", target = |
28 |
"/usr/bin/python-config", prefix = "/usr/bin/", regexp = |
29 |
"python([0-9]+\.[0-9]+)-config$") |
30 |
|
31 |
|
32 |
bin.add_link(python_config) # For inheritance |
33 |
bin.add_link(python) # Adding The Link to the action |
34 |
module.add_action(bin) #Adding the action to the module |
35 |
|
36 |
# End |
37 |
|
38 |
Only 1 module per file and modules are retrieved via the variable |
39 |
"module" on each module. I couldn't find out a better way of doing this |
40 |
but I'm sure there is one. Anyone? |
41 |
|
42 |
This seems a bit messy but will be much easier to create support for |
43 |
markup languages (I'm starting to love the idea of JSON). |
44 |
|
45 |
This is a very good progress but brought a problem. Managing symlinking |
46 |
dependencies (tree-like) became a huge headache. (Due to infinite |
47 |
dependency capabilities). Suggestions are welcome in this part. |
48 |
|
49 |
At this point I am creating a new way of managing several targets and |
50 |
it's dependencies automatically in an indexed way either for easy |
51 |
displaying and also for easy choosing. (No indexing is beeing done right |
52 |
now, just plain object count) |
53 |
|
54 |
I plan to start the profiling capabilities later this week. |
55 |
|
56 |
Cheers, |
57 |
Sérgio |
58 |
-- |
59 |
Sérgio Almeida - mephx.x@×××××.com |
60 |
mephx @ freenode |