Anonymous avatar Anonymous committed d8cadbb

[svn r3845] Also create pythonw on Mac

Comments (0)

Files changed (2)

 
 * Better find libraries when compiling extensions on Windows.
 
-* Create ``Scripts\pythonw.exe`` on Windows.
+* Create ``Scripts\pythonw.exe`` on Windows and ``bin/pythonw`` on Mac.
 
 1.3.3
 ~~~~~
             logger.info('Executable actually exists in %s' % executable)
         shutil.copyfile(executable, py_executable)
         make_exe(py_executable)
-        if sys.platform == 'win32' or sys.platform == 'cygwin':
-            pythonw = os.path.join(os.path.dirname(sys.executable, 'pythonw.exe'))
+        if sys.platform == 'win32' or sys.platform == 'cygwin' or sys.platform == 'darwin':
+            if sys.platform == 'darwin':
+                basename = 'pythonw'
+            else:
+                basename = 'pythonw.exe'
+            pythonw = os.path.join(os.path.dirname(sys.executable, basename))
             if os.path.exists(pythonw):
-                logger.info('Also created pythonw.exe')
-                shutil.copyfile(pythonw, os.path.join(os.path.dirname(py_executable, 'pythonw.exe')))
+                pythonw_dest = os.path.join(os.path.dirname(py_executable, basename))
+                logger.info('Also created %s' % basename)
+                shutil.copyfile(pythonw, pythonw_dest)
+                make_exe(pythonw_dest)
                 
     if os.path.splitext(os.path.basename(py_executable))[0] != expected_exe:
         secondary_exe = os.path.join(os.path.dirname(py_executable),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.