Lines Matching refs:package

36         self.package = None
103 for package in self.packages:
105 src_dir = self.get_package_dir(package)
108 build_dir = os.path.join(*([self.build_lib] + package.split('.')))
117 file[plen:] for file in self.find_data_files(package, src_dir)
119 data.append((package, src_dir, build_dir, filenames))
122 def find_data_files(self, package, src_dir): argument
125 + self.package_data.get(package, []))
137 for package, src_dir, build_dir, filenames in self.data_files:
144 def get_package_dir(self, package): argument
149 path = package.split('.')
184 def check_package(self, package, package_dir): argument
199 if package:
218 def find_package_modules(self, package, package_dir): argument
219 self.check_package(package, package_dir)
228 modules.append((package, module, f))
259 package = '.'.join(path[0:-1])
263 (package_dir, checked) = packages[package]
265 package_dir = self.get_package_dir(package)
269 init_py = self.check_package(package, package_dir)
270 packages[package] = (package_dir, 1)
272 modules.append((package, "__init__", init_py))
281 modules.append((package, module_base, module_file))
295 for package in self.packages:
296 package_dir = self.get_package_dir(package)
297 m = self.find_package_modules(package, package_dir)
304 def get_module_outfile(self, build_dir, package, module): argument
305 outfile_path = [build_dir] + list(package) + [module + ".py"]
311 for (package, module, module_file) in modules:
312 package = package.split('.')
313 filename = self.get_module_outfile(self.build_lib, package, module)
323 for package, src_dir, build_dir, filenames in self.data_files
329 def build_module(self, module, module_file, package): argument
330 if isinstance(package, str):
331 package = package.split('.')
332 elif not isinstance(package, (list, tuple)):
339 outfile = self.get_module_outfile(self.build_lib, package, module)
346 for (package, module, module_file) in modules:
352 self.build_module(module, module_file, package)
355 for package in self.packages:
366 package_dir = self.get_package_dir(package)
367 modules = self.find_package_modules(package, package_dir)
372 assert package == package_
373 self.build_module(module, module_file, package)