Commits

Amaury Forgeot d'Arc committed dff1cac

Allows presetup.py to execute setup.py scripts which use
the "if __name__ == '__main__'" idiom

Comments (0)

Files changed (1)

pypy/module/cpyext/presetup.py

 patch_distutils()
 
 del sys.argv[0]
-execfile(sys.argv[0], {'__file__': sys.argv[0]})
+execfile(sys.argv[0], {'__file__': sys.argv[0], '__name__': '__main__'})