Lines Matching refs:path
54 for name, path in self.distribution.package_dir.items():
55 self.package_dir[name] = convert_path(path)
107 build_dir = os.path.join(*([self.build_lib] + package.split('.')))
109 # Length of path to strip from found files
127 # Each pattern has to be converted to a platform-specific path
128 filelist = glob.glob(os.path.join(glob.escape(src_dir), convert_path(pattern)))
131 and os.path.isfile(fn)])
139 target = os.path.join(build_dir, filename)
140 self.mkpath(os.path.dirname(target))
141 self.copy_file(os.path.join(src_dir, filename), target,
148 path = package.split('.')
151 if path:
152 return os.path.join(*path)
157 while path:
159 pdir = self.package_dir['.'.join(path)]
161 tail.insert(0, path[-1])
162 del path[-1]
165 return os.path.join(*tail)
167 # Oops, got all the way through 'path' without finding a
173 # of 'path' at this point).
179 return os.path.join(*tail)
185 # assume exists. Also, os.path.exists and isdir don't know about
189 if not os.path.exists(package_dir):
192 if not os.path.isdir(package_dir):
199 init_py = os.path.join(package_dir, "__init__.py")
200 if os.path.isfile(init_py):
211 if not os.path.isfile(module_file):
219 module_files = glob.glob(os.path.join(glob.escape(package_dir), "*.py"))
221 setup_script = os.path.abspath(self.distribution.script_name)
224 abs_f = os.path.abspath(f)
226 module = os.path.splitext(os.path.basename(f))[0]
235 module_base, filename): 'package' is a tuple of the path through
237 packages, no dots) module name, and 'filename' is the path to the
257 path = module.split('.')
258 package = '.'.join(path[0:-1])
259 module_base = path[-1]
276 module_file = os.path.join(package_dir, module_base + ".py")
305 return os.path.join(*outfile_path)
323 os.path.join(build_dir, filename)
341 dir = os.path.dirname(outfile)
362 # already know its package!), and 'module_file' is the path to