[pypy-svn] r44728 - pypy/dist/pypy/translator

antocuni at codespeak.net antocuni at codespeak.net
Wed Jul 4 19:06:44 CEST 2007


Author: antocuni
Date: Wed Jul  4 19:06:43 2007
New Revision: 44728

Modified:
   pypy/dist/pypy/translator/driver.py
Log:
at the moment main.exe is needed to import the generated dll.



Modified: pypy/dist/pypy/translator/driver.py
==============================================================================
--- pypy/dist/pypy/translator/driver.py	(original)
+++ pypy/dist/pypy/translator/driver.py	Wed Jul  4 19:06:43 2007
@@ -694,6 +694,12 @@
         pypylib_dll = os.path.join(usession_path, 'pypylib.dll')
         shutil.copy(dllname, '.')
         shutil.copy(pypylib_dll, '.')
+        
+        # main.exe is a stub but is needed right now because it's
+        # referenced by pypylib.dll.  Will be removed in the future
+        translator_path, _ = os.path.split(__file__)
+        main_exe = os.path.join(translator_path, 'cli/src/main.exe')
+        shutil.copy(main_exe, '.')
 
     def task_run_cli(self):
         pass



More information about the Pypy-commit mailing list