]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/Setup.py
AppPkg/Applications/Python: Add Python 2.7.2 sources since the release of Python...
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Tools / pybench / Setup.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/Setup.py b/AppPkg/Applications/Python/Python-2.7.2/Tools/pybench/Setup.py
new file mode 100644 (file)
index 0000000..565893b
--- /dev/null
@@ -0,0 +1,43 @@
+#!/usr/bin/env python\r
+\r
+# Setup file for pybench\r
+#\r
+# This file has to import all tests to be run; it is executed as\r
+# Python source file, so you can do all kinds of manipulations here\r
+# rather than having to edit the tests themselves.\r
+#\r
+# Note: Please keep this module compatible to Python 1.5.2.\r
+#\r
+# Tests may include features in later Python versions, but these\r
+# should then be embedded in try-except clauses in this configuration\r
+# module.\r
+\r
+# Defaults\r
+Number_of_rounds = 10\r
+Warp_factor = 10\r
+\r
+# Import tests\r
+from Arithmetic import *\r
+from Calls import *\r
+from Constructs import *\r
+from Lookups import *\r
+from Instances import *\r
+try:\r
+    from NewInstances import *\r
+except ImportError:\r
+    pass\r
+from Lists import *\r
+from Tuples import *\r
+from Dict import *\r
+from Exceptions import *\r
+try:\r
+    from With import *\r
+except SyntaxError:\r
+    pass\r
+from Imports import *\r
+from Strings import *\r
+from Numbers import *\r
+try:\r
+    from Unicode import *\r
+except (ImportError, SyntaxError):\r
+    pass\r