Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix update_glslang_sources.py to not use distutils #3394

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions update_glslang_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,9 @@
"""Get source files for Glslang and its dependencies from public repositories.
"""

from __future__ import print_function

import argparse
import json
import distutils.dir_util
import os.path
import os
import subprocess
import sys

Expand Down Expand Up @@ -106,7 +103,7 @@ def HasCommit(self):
cwd=self.subdir)

def Clone(self):
distutils.dir_util.mkpath(self.subdir)
os.makedirs(self.subdir, exist_ok=True)
command_output(['git', 'clone', self.GetUrl(), '.'], self.subdir)

def Fetch(self):
Expand Down Expand Up @@ -139,7 +136,7 @@ def main():

commits = GetGoodCommits(args.site)

distutils.dir_util.mkpath(args.dir)
os.makedirs(args.dir, exist_ok=True)
print('Change directory to {d}'.format(d=args.dir))
os.chdir(args.dir)

Expand Down