Lines Matching +full:dir +full:- +full:glob
4 import msilib, schema, sequence, os, glob, time, re, shutil, zipfile
74 upgrade_code_snapshot='{92A24481-3ECB-40FC-8836-04B7966EC0D5}'
75 upgrade_code='{65E6DE48-A358-434D-AA4F-4AF72DB4718F}'
76 upgrade_code_64='{6A965A0C-6EE6-4E3A-9983-3263F56311EC}'
107 # Well-known component UUIDs
116 "24":"{9B81E618-2301-4035-AC77-75D9ABEB7301}",
117 "25":"{2e41b118-38bd-4c1b-a840-6977efd1b911}",
118 "26":"{34ebecac-f046-4e1c-b0e3-9bac3cdaacfa}",
119 "27":"{4fe21c76-1760-437b-a2f2-99909130a175}",
136 warning = "WARNING: %s - libpythonXX.a not built"
144 gendef_command = '%s - %s' % (gendef, dll_path)
145 dlltool_command = "%s --dllname %s --def %s --output-lib %s" % \
148 dlltool_command += " -m i386:x86-64"
150 dlltool_command += " -m i386 --as-flags=--32"
185 # Bump the last digit of the code by one, so that 32-bit and 64-bit
187 digit = hex((int(product_code[-2],16)+1)%16)[-1]
188 product_code = product_code[:-2] + digit + '}'
210 # b) it is NT, the user is privileged, and has chosen per-machine installation
221 productsuffix = " (64-bit)"
227 msiname = "python-%s%s.msi" % (full_current_version, msilib.arch_ext)
242 # reset if the user choses a per-user installation. Instead, we
259 # either both per-machine or per-user.
295 ruler = self.h - 36
309 """Add a back button with a given title, the tab-next button,
317 return self.pushbutton(name, 180, self.h-27 , 56, 17, flags, title, next)
320 """Add a cancel button with a given title, the tab-next button,
328 return self.pushbutton(name, 304, self.h-27, 56, 17, flags, title, next)
331 """Add a Next button with a given title, the tab-next button,
339 return self.pushbutton(name, 236, self.h-27, 56, 17, flags, title, next)
342 """Add a button with a given title, the tab-next button,
344 y-position is aligned with the other buttons.
347 return self.pushbutton(name, int(self.w*xpos - 28), self.h-27, 56, 17, 3, title, next)
411 …compileargs = r'"[#python.exe]" -Wi "[TARGETDIR]Lib\compileall.py" -f -x "bad_coding|badsyntax|sit…
412 …compileoargs = r'"[#python.exe]" -O -Wi "[TARGETDIR]Lib\compileall.py" -f -x "bad_coding|badsyntax…
413 …lib2to3args = r'"[#python.exe]" -c "import lib2to3.pygram, lib2to3.patcomp;lib2to3.patcomp.Pattern…
414 updatepipargs = r'"[#python.exe]" -m ensurepip -U --default-pip'
415 removepipargs = r'"[#python.exe]" -B -m ensurepip._uninstall'
447 # In the user interface, assume all-users installation if privileged.
462 [("PathAddition", "=-*Path", "[TARGETDIR];[TARGETDIR]Scripts;[~]", "REGISTRY.path")])
724 # take into account whether the previous installation was per-user
725 # or per-machine. We currently don't support going back to this
727 # find how to reset the ALLUSERS property, and how to re-run
787 c=progress.text("ActionText", 70, 100, w-70, 20, 3, "Pondering...")
858 shared_crt = Feature(db, "SharedCRT", "MSVCRT", "C Run-Time (system-wide)", 0,
860 private_crt = Feature(db, "PrivateCRT", "MSVCRT", "C Run-Time (private)", 0,
899 dir = os.path.join(os.environ['VS90COMNTOOLS'], r"..\..\VC\redist\%s\Microsoft.VC90.CRT" % arch)
906 path = os.path.join(dir, f)
915 import shutil, glob
919 for name, pat, file in (("bzip2","bzip2-*", "LICENSE"),
920 ("Berkeley DB", "bsddb-*", "LICENSE"),
921 ("openssl", "openssl-*", "LICENSE"),
922 ("Tcl", "tcl-8*", "license.terms"),
923 ("Tk", "tk-8*", "license.terms"),
924 ("Tix", "tix-*", "license.terms")):
926 dirs = glob.glob(srcdir+"/externals/"+pat)
931 dir = dirs[0]
932 shutil.copyfileobj(open(os.path.join(dir, file)), out)
989 # Actually, don't do that anymore - no DLL in DLLs should have a manifest
1006 # Add all .py files in Lib, except lib-tk, test
1012 parent, dir = pydirs.pop()
1013 if dir == ".svn" or dir.startswith("plat-"):
1015 elif dir in ["lib-tk", "idlelib", "Icons"]:
1019 elif dir in ['test', 'tests', 'data', 'output']:
1025 elif not have_ctypes and dir == "ctypes":
1029 lib = PyDirectory(db, cab, parent, dir, dir, "%s|%s" % (parent.make_short(dir), dir))
1031 dirs[dir]=lib
1032 lib.glob("*.txt")
1033 lib.glob("*.whl")
1034 lib.glob("*.0")
1035 if dir=='site-packages':
1038 files = lib.glob("*.py")
1039 files += lib.glob("*.pyw")
1043 if dir.endswith('.egg-info'):
1045 lib.add_file('PKG-INFO')
1047 lib.add_file('zip-safe')
1049 if dir=='test' and parent.physical=='Lib':
1057 lib.add_file("Sine-1000Hz-300ms.aif")
1059 lib.glob("*.uue")
1060 lib.glob("*.pem")
1061 lib.glob("*.pck")
1063 if dir=='tests' and parent.physical=='distutils':
1065 if dir=='audiodata':
1066 lib.glob("*.*")
1067 if dir=='decimaltestdata':
1068 lib.glob("*.decTest")
1069 if dir=='imghdrdata':
1070 lib.glob("*.*")
1071 if dir=='xmltestdata':
1072 lib.glob("*.xml")
1074 if dir=='output':
1075 lib.glob("test_*")
1076 if dir=='idlelib':
1077 lib.glob("*.def")
1080 if dir=="Icons":
1081 lib.glob("*.gif")
1082 lib.glob("*.ico")
1084 if dir=="command" and parent.physical=="distutils":
1085 lib.glob("wininst*.exe")
1086 if dir=="setuptools":
1089 if dir=="lib2to3":
1091 if dir=="data" and parent.physical=="test" and parent.basedir.physical=="email":
1092 # This should contain all non-.svn files listed in subversion
1135 for f in glob.glob1(tcldir, "*.dll"):
1138 for f in glob.glob1(srcdir+"/"+PCBUILD, "*.pyd"):
1146 lib.glob("*.h")
1153 # Add the mingw-format library
1161 parent, phys, dir = tcldirs.pop()
1162 lib = PyDirectory(db, cab, parent, phys, dir, "%s|%s" % (parent.make_short(dir), dir))
1175 lib.glob("*.py")
1176 lib.glob("*.pyw", exclude=['pydocgui.pyw'])
1178 lib.glob("*.txt")
1181 x.glob("*.txt")
1205 # -1 for Root specifies "dependent on ALLUSERS property"
1253 ("py.IDLE", -1, pat % (testprefix, "", ewi), "",
1254 r'"[TARGETDIR]pythonw.exe" "[TARGETDIR]Lib\idlelib\idle.pyw" -e "%1"',
1256 ("pyw.IDLE", -1, pat % (testprefix, "NoCon", ewi), "",
1257 r'"[TARGETDIR]pythonw.exe" "[TARGETDIR]Lib\idlelib\idle.pyw" -e "%1"',
1262 ("py.ext", -1, r"Software\Classes\."+ext, "",
1264 ("pyw.ext", -1, r"Software\Classes\."+ext+'w', "",
1266 ("pyc.ext", -1, r"Software\Classes\."+ext+'c', "",
1268 ("pyo.ext", -1, r"Software\Classes\."+ext+'o', "",
1271 ("py.mime", -1, r"Software\Classes\."+ext, "Content Type",
1273 ("pyw.mime", -1, r"Software\Classes\."+ext+'w', "Content Type",
1276 ("py.open", -1, pat % (testprefix, "", "open"), "",
1278 ("pyw.open", -1, pat % (testprefix, "NoCon", "open"), "",
1280 ("pyc.open", -1, pat % (testprefix, "Compiled", "open"), "",
1284 ("py.icon", -1, pat2 % (testprefix, ""), "",
1286 ("pyw.icon", -1, pat2 % (testprefix, "NoCon"), "",
1288 ("pyc.icon", -1, pat2 % (testprefix, "Compiled"), "",
1291 ("py.txt", -1, pat3 % (testprefix, ""), "",
1293 ("pyw.txt", -1, pat3 % (testprefix, "NoCon"), "",
1295 ("pyc.txt", -1, pat3 % (testprefix, "Compiled"), "",
1298 ("py.drop", -1, pat4 % (testprefix, ""), "",
1299 "{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
1300 ("pyw.drop", -1, pat4 % (testprefix, "NoCon"), "",
1301 "{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
1302 ("pyc.drop", -1, pat4 % (testprefix, "Compiled"), "",
1303 "{60254CA5-953B-11CF-8C96-00AA00B8708C}", "REGISTRY.def"),
1309 [("InstallPath", -1, prefix+r"\InstallPath", "", "[TARGETDIR]", "REGISTRY"),
1310 ("InstallGroup", -1, prefix+r"\InstallPath\InstallGroup", "",
1312 ("PythonPath", -1, prefix+r"\PythonPath", "",
1313 r"[TARGETDIR]Lib;[TARGETDIR]DLLs;[TARGETDIR]Lib\lib-tk", "REGISTRY"),
1314 ("Documentation", -1, prefix+r"\Help\Main Python Documentation", "",
1316 ("Modules", -1, prefix+r"\Modules", "+", None, "REGISTRY"),
1317 ("AppPaths", -1, r"Software\Microsoft\Windows\CurrentVersion\App Paths\Python.exe",
1319 ("DisplayIcon", -1,
1323 ("EnsurePipRun", -1, prefix+r"\EnsurePipRun", "", "#1", "REGISTRY.ensurepip"),
1348 ## Non-advertised shortcuts: must be associated with a registry component
1361 path = "python-%s%s-pdb.zip" % (full_current_version, msilib.arch_ext)
1363 for f in glob.glob1(os.path.join(srcdir, PCBUILD), "*.pdb"):
1421 maxmedia = -1