Author: ks156
Date: 2009-03-16 16:36:14 +0100 (Mon, 16 Mar 2009)
New Revision: 4096

Modified:
   software_suite_v2/tuxware/pytuxisalive/trunk/src/setup.py
Log:
* Fixed a bug with the installation. On ubuntu 9.04, tuxisalive was installed
  on /usr/local/lib/python2.6 ut the shared libraries were installed on
  /usr/lib/python2.6


Modified: software_suite_v2/tuxware/pytuxisalive/trunk/src/setup.py
===================================================================
--- software_suite_v2/tuxware/pytuxisalive/trunk/src/setup.py   2009-03-16 
15:28:37 UTC (rev 4095)
+++ software_suite_v2/tuxware/pytuxisalive/trunk/src/setup.py   2009-03-16 
15:36:14 UTC (rev 4096)
@@ -89,9 +89,12 @@
 # XXX I'm not sure that trick will works on Windows.
 if os.name != 'nt':
     # Test if tuxisalive has been installed on /usr/local/lib/...
-    if  os.system("test -d /usr/local/lib/python2.5/site-packages/tuxisalive") 
== 0:
+
+    package_path = PACKAGE_BASE_PATH.replace("/usr/lib/", \
+        "/usr/local/lib/")
+    if  os.system("test -d %s/tuxisalive"%package_path) == 0:
         # Change the installation PATH for the .so libraries.
-        PACKAGE_BASE_PATH = "/usr/local/lib/python2.5/site-packages"
+        PACKAGE_BASE_PATH = package_path
 
 #
 # Install the package (.so files only)


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to