[pypy-svn] r45871 - pypy/dist/pypy/translator/goal

arigo at codespeak.net arigo at codespeak.net
Sun Aug 19 19:32:24 CEST 2007


Author: arigo
Date: Sun Aug 19 19:32:24 2007
New Revision: 45871

Removed:
   pypy/dist/pypy/translator/goal/app_basic_example.py
Modified:
   pypy/dist/pypy/translator/goal/targetmultiplespaces.py
   pypy/dist/pypy/translator/goal/targetpypystandalone.py
Log:
Kill the execution of app_basic_example.py at the start of a translation.
This causes problems like pre-importing the 'site' module.


Modified: pypy/dist/pypy/translator/goal/targetmultiplespaces.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetmultiplespaces.py	(original)
+++ pypy/dist/pypy/translator/goal/targetmultiplespaces.py	Sun Aug 19 19:32:24 2007
@@ -79,12 +79,6 @@
         space2.exec_(open(filename).read(), w_dict, w_dict)
         w_entry_point_2 = space2.getitem(w_dict, space2.wrap('entry_point'))
 
-        # sanity-check: call the entry point
-        res = entry_point(["pypy", "app_basic_example.py"])
-        assert res == 0
-        res = entry_point(["pypy", "--space2", "app_basic_example.py"])
-        assert res == 0
-
         return entry_point, None, PyPyAnnotatorPolicy()
 
 

Modified: pypy/dist/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/dist/pypy/translator/goal/targetpypystandalone.py	(original)
+++ pypy/dist/pypy/translator/goal/targetpypystandalone.py	Sun Aug 19 19:32:24 2007
@@ -10,7 +10,6 @@
 from pypy.tool.option import make_objspace
 
 thisdir = py.magic.autopath().dirpath()
-app_basic_example_path = str(thisdir.join("app_basic_example.py"))
 
 try:
     this_dir = os.path.dirname(__file__)
@@ -171,10 +170,6 @@
         space.exec_(open(filename).read(), w_dict, w_dict)
         entry_point = create_entry_point(space, w_dict)
 
-        # sanity-check: call the entry point
-        res = entry_point(["pypy", app_basic_example_path])
-        assert res == 0
-
         return entry_point, None, PyPyAnnotatorPolicy(single_space = space)
 
     def interface(self, ns):



More information about the Pypy-commit mailing list