aboutsummaryrefslogtreecommitdiff
path: root/ports/spirv-tools/comment-distutils.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/spirv-tools/comment-distutils.patch')
-rw-r--r--ports/spirv-tools/comment-distutils.patch14
1 files changed, 7 insertions, 7 deletions
diff --git a/ports/spirv-tools/comment-distutils.patch b/ports/spirv-tools/comment-distutils.patch
index 2426f82ba..1ec4e9dcb 100644
--- a/ports/spirv-tools/comment-distutils.patch
+++ b/ports/spirv-tools/comment-distutils.patch
@@ -1,22 +1,22 @@
diff --git a/utils/generate_registry_tables.py b/utils/generate_registry_tables.py
-index 8b1c3572..6ab28fe6 100644
+index e662ba9..49f2718 100644
--- a/utils/generate_registry_tables.py
+++ b/utils/generate_registry_tables.py
-@@ -16,7 +16,7 @@
-
- from __future__ import print_function
+@@ -14,7 +14,7 @@
+ # limitations under the License.
+ """Generates the vendor tool table from the SPIR-V XML registry."""
-import distutils.dir_util
+#import distutils.dir_util
import os.path
import xml.etree.ElementTree
-@@ -64,7 +64,7 @@ def main():
+@@ -62,7 +62,7 @@ def main():
with open(args.xml) as xml_in:
registry = xml.etree.ElementTree.fromstring(xml_in.read())
- distutils.dir_util.mkpath(os.path.dirname(args.generator_output))
+ #distutils.dir_util.mkpath(os.path.dirname(args.generator_output))
- print(generate_vendor_table(registry), file=open(args.generator_output, 'w'))
-
+ with open(args.generator_output, 'w') as f:
+ f.write(generate_vendor_table(registry))