Re: [gentoo-user] Installing python packages for different versions

2009-06-14 Thread Khanh Nguyen
Hi Florian.

** (Sat, Jun 13, 2009 at 06:44:27PM +0200) Florian Philipp wrote:
> Hi!
> 
> This is actually a follow-up for my thread "Trouble installing Plone".
> 
> Following scenario: I have packages which run on python-2.4 and other
> packages which work with 2.5. Zope is a prominent example of the 2.4 gang.
> 
> The problem: When I emerge a python package, for example
> dev-python/imaging, it is only installed in the
> /usr/lib/python-2.*/site-packages directory of the python version which
> is currently enabled by eselect.
> 
> Naturally, this is the most recent version: 2.5. However, as soon as a
> python-2.4 package depends on one of these other packages, it just
> doesn't work because it expects them in /usr/lib/python-2.4/site-packages.
> 
> How am I supposed to work around this?

With regards to Zope and Plone, use python2.5 but have python2.4 installed
and use buildout[1] to fetch Zope/Plone.

Zope needs python2.4 with PIL. A quick fix, is to either symlink or
copy /usr/lib/python-2.5/site-packages/PIL* to 
/usr/lib/python-2.4/site-packages/

You also need dev-libs/libxml2 (with python) and symlink/copy to
/usr/lib/python-2.4/site-packages/{libxml2*,drv_libxml2}  

When Python dependencies are in place, you can use buildout to fetch Zope/Plone
For this you need dev-python/setuptools.


PS! When following the guide[1], remember to bootstrap and buildout with 
python2.4.
eg: python2.4 bootstrap.py && python2.4 ./bin/buildout

PSS! If you use sudo and have a restrictive umask for your user, you need to 
lower
it to eg 022 before creating the buildout enviroment.

> Regards,
> 
> Florian Philipp
> 

Good luck :)

[1] http://plone.org/documentation/tutorial/buildout
-- 
Khanh Nguyen



Re: [gentoo-user] New xorg.conf with x11-base/xorg-server-1.5.3-r5

2009-04-07 Thread Khanh Nguyen
** (Tue, Apr 07, 2009 at 09:39:45AM +0100) Mick wrote:
> Hi All,
> 
> I've emerged the new xorg-server-1.5.3-r5, removed my xorg.conf as advised  
> and noticed two things which I am not sure how to fix:
> 
> My keyboard layout is no longer UK, but US (I think); i.e. the # symbol is 
> not 
> next to the return key, but at Shift+3.  How can I change it back to UK?
> 
> I used to have this stanza in my xorg.conf to be able to switch languages:
> =
> Section "InputDevice"
> Identifier  "Keyboard0"
> Driver  "kbd"
> Option  "Name" "AT Translated Set 2 keyboard"
> Option  "XkbModel"  "pc105"
> Option  "XkbLayout" "gb,el"
> 
> Option  "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll,compose:menu"
> EndSection
> =
> 
> How can I set up the same thing now?

You can have at this:
http://forums.gentoo.org/viewtopic-t-722498-highlight-hal+keyboard.html

Here's what I did.
I kept xorg.conf, but removed InputDevices.
Created the file /etc/hal/fdi/policy/10-x11-input.fdi 

You can try the following. Modify it after your needs and remember to
restart /etc/init.d/hald.

-- Start: /etc/hal/fdi/policy/10-x11-input.fdi
 

  


  evdev





  hal-setup-keymap



  evdev
  evdev
  gb,dk
  xorg
  
  
grp:alt_shift_toggle,grp_led:scroll,compose:menu
  






  

-- End: /etc/hal/fdi/policy/10-x11-input.fdi

-- 
Khanh Nguyen