On Fri, 2008-03-21 at 13:42 +0930, Iain Buchanan wrote: > Hi all, > > could someone who packages sync-engine for something other than Gentoo > please apply this one-line patch > to /usr/lib/python2.5/site-packages/SyncEngine/config.py (or where > appropriate): > > after each of these lines: > > > self.sepath = str(xml2util).split()[3][1:-2] > > > self.sepath = os.path.dirname(self.sepath) > > > self.sepath = os.path.dirname(self.sepath) > > please add the line: > > > print "self.sepath = %s" % self.sepath > > and then run sync-engine and check the output against this: > > > self.sepath = /usr/lib/python2.5/site-packages/SyncEngine/xml2util.py > > > self.sepath = /usr/lib/python2.5/site-packages/SyncEngine > > > self.sepath = /usr/lib/python2.5/site-packages > > My intention is to see if this is a Gentoo packaging thing I'm doing > wrong, or general python install behaviour. > > Any tips to how python packages are installed would also be welcome :) > > thanks,
Hi Iain I had a bit of fun when I made a deb of sync-engine too. I'll gloss over some of it, since debian policy uses particular things like pycentral or python-support. I get the equivalent of what you get, in site-packages. For the base config, I installed config.xml in site-packages/SyncEngine, dropped the third of the above lines so self.sepath refers to this dir, and further on changed config/config.xml to just config.xml. I did this because it seemed inappropriate to have a file called config.xml in site-packages. I think it would still be better in /usr/share/sync-engine or something. I also put authcli and authgui in site-packages/SyncEngine, and changed the path in auth.py Hope this helps Mark ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ SynCE-Devel mailing list SynCE-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel