Lines Matching full:path

147     if dir is None or not os.path.isdir(dir) or dir in dirlist:
149 for i, path in enumerate(dirlist):
150 if not os.path.isabs(path):
173 if os.path.isabs(subdir):
175 path = os.path.join(sysroot, subdir)
176 if os.path.isdir(path):
177 dirs.append(path)
216 def is_macosx_sdk_path(path):
218 Returns True if 'path' can be located in a macOS SDK
220 return ( (path.startswith('/usr/') and not path.startswith('/usr/local'))
221 or path.startswith('/System/Library')
222 or path.startswith('/System/iOSSupport') )
252 f = os.path.join(dir_, filename)
255 f = os.path.join(sysroot, dir_[1:], filename)
257 if os.path.exists(f): return []
261 f = os.path.join(dir_, filename)
264 f = os.path.join(sysroot, dir_[1:], filename)
266 if os.path.exists(f):
279 bad_paths = [tzpath for tzpath in tzpaths if not os.path.isabs(tzpath)]
294 return os.path.abspath(os.path.join(dirs[0], module))
392 self.srcdir = os.path.abspath(self.srcdir)
411 os.path.join(self.srcdir, 'Modules'),
417 self.distribution.scripts = [os.path.join(self.srcdir, filename)
423 headers.extend(glob(os.path.join(include_dir, "*.h")))
424 headers.extend(glob(os.path.join(include_dir, "cpython", "*.h")))
425 headers.extend(glob(os.path.join(include_dir, "internal", "*.h")))
472 if os.path.lexists(fullpath):
651 ext_filename = os.path.join(
674 basename, tail = os.path.splitext(ext_filename)
676 if os.path.exists(newname):
690 tmpfile = os.path.join(self.build_temp, 'multiarch')
691 if not os.path.exists(self.build_temp):
715 tmpfile = os.path.join(self.build_temp, 'multiarch')
716 if not os.path.exists(self.build_temp):
733 # add library search path by wr-cc, the compiler wrapper
735 def convert_mixed_path(path):
736 # convert path like C:\folder1\folder2/folder3/folder4
738 drive = path[0].lower()
739 left = path[2:].replace("\\", "/")
750 # returns mixed style path like:
753 d = os.path.normpath(d)
756 tmpfile = os.path.join(self.build_temp, 'wrccpaths')
777 tmpfile = os.path.join(self.build_temp, 'ccpaths')
778 if not os.path.exists(self.build_temp):
800 d = os.path.normpath(d)
860 os.path.normpath(sys.base_prefix) != '/usr' and
881 # set the logical path of the standard system headers and
1041 tmpfile = os.path.join(self.build_temp, 'readline_termcap_lib')
1042 if not os.path.exists(self.build_temp):
1072 if os.path.exists(tmpfile):
1428 ffi_in_sdk = os.path.join(macosx_sdk_root(), "usr/include/ffi")
1431 if os.path.exists(ffi_in_sdk):
1446 if not os.path.exists(ffi_h):
1456 ffi_headers = glob(os.path.join(ffi_inc, '*.h'))
1512 # directory, which is not in sys.path when running Python during
1544 if os.path.islink(filename): continue
1552 if os.path.islink(dirpath):