[Commits] r2049 - website

commits at geoext.org commits at geoext.org
Fri Mar 26 10:57:16 CET 2010


Author: ahocevar
Date: 2010-03-26 10:57:15 +0100 (Fri, 26 Mar 2010)
New Revision: 2049

Modified:
   website/setup_website
Log:
make setup_website work on OSX also.


Modified: website/setup_website
===================================================================
--- website/setup_website	2010-03-26 08:25:38 UTC (rev 2048)
+++ website/setup_website	2010-03-26 09:57:15 UTC (rev 2049)
@@ -625,6 +625,16 @@
     if 'Python.framework' in prefix:
         logger.debug('MacOSX Python framework detected')
 
+        # Make sure we use the the embedded interpreter inside
+        # the framework, even if sys.executable points to
+        # the stub executable in ${sys.prefix}/bin
+        # See http://groups.google.com/group/python-virtualenv/
+        #                              browse_thread/thread/17cab2f85da75951
+        shutil.copy(
+                os.path.join(
+                    prefix, 'Resources/Python.app/Contents/MacOS/Python'),
+                py_executable)
+
         # Copy the framework's dylib into the virtual 
         # environment
         virtual_lib = os.path.join(home_dir, '.Python')



More information about the Commits mailing list