Archive

Archive for the ‘gridcc’ Category

distcc replacement v2

March 18th, 2007 2 comments

improvements:

  • OO class design
  • now using getopt python command line parser
  • using subprocess instead of commands (thx to this tip!)
  • todo: server and general cleanup, subprocess not working correctly

install like in version 1

Read more...

Categories: coding, gridcc, python Tags:

distCC replacement

March 18th, 2007 No comments

just wrote a small and dirty replacement for distCC. A small comparison:
LOC (Lines of Code) distCC: ~8000
LOC this tool: 142 :-)

how to use:

  1. copy+paste the files below into your filesystem (all in one directory). You must fix some paths:
    • the real GCC path in server.py (line 33) and gridcc (line 16)
    • the log message directory in utils.py (line 28).
  2. run server with: python ~/your/path/server.py
  3. create some links:
    • ln -s ~/your/path/gridcc /usr/local/bin/gcc
    • ln -s ~/your/path/gridcc /usr/local/bin/g++
  4. chmod +x ~/your/path/gridcc
  5. download distCC source code version and compile it as regular. The gridCC should work correctly if the above links are placed correctly

note: this little tool was tested by compiling distcc, so other programs may use other gcc-arguments, which might confuse it

BTW: why are bible-cites in the distcc-sources?

so here is the source:
Read more...

Categories: coding, gridcc Tags: