X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fship%2Fcommon_ship.py;fp=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fship%2Fcommon_ship.py;h=0000000000000000000000000000000000000000;hp=b46cd5b8f42149d352a092abe271fc179eca4766;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/node-pty/deps/winpty/ship/common_ship.py b/node_modules/node-pty/deps/winpty/ship/common_ship.py deleted file mode 100644 index b46cd5b..0000000 --- a/node_modules/node-pty/deps/winpty/ship/common_ship.py +++ /dev/null @@ -1,53 +0,0 @@ -import os -import sys - -if os.name != "nt": - sys.exit("Error: ship scripts require native Python 2.7. (wrong os.name)") -if sys.version_info[0:2] != (2,7): - sys.exit("Error: ship scripts require native Python 2.7. (wrong version)") - -import glob -import shutil -import subprocess -from distutils.spawn import find_executable - -topDir = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) - -with open(topDir + "/VERSION.txt", "rt") as f: - winptyVersion = f.read().strip() - -def rmrf(patterns): - for pattern in patterns: - for path in glob.glob(pattern): - if os.path.isdir(path) and not os.path.islink(path): - print "+ rm -r " + path - sys.stdout.flush() - shutil.rmtree(path) - elif os.path.isfile(path): - print "+ rm " + path - sys.stdout.flush() - os.remove(path) - -def mkdir(path): - if not os.path.isdir(path): - os.makedirs(path) - -def requireExe(name, guesses): - if find_executable(name) is None: - for guess in guesses: - if os.path.exists(guess): - newDir = os.path.dirname(guess) - print "Adding " + newDir + " to Path to provide " + name - os.environ["Path"] = newDir + ";" + os.environ["Path"] - ret = find_executable(name) - if ret is None: - sys.exit("Error: required EXE is missing from Path: " + name) - return ret - -requireExe("git.exe", [ - "C:\\Program Files\\Git\\cmd\\git.exe", - "C:\\Program Files (x86)\\Git\\cmd\\git.exe" -]) - -commitHash = subprocess.check_output(["git.exe", "rev-parse", "HEAD"]).decode().strip() -defaultPathEnviron = "C:\\Windows\\System32;C:\\Windows"