Lines Matching refs:package
35 self.package = None
102 for package in self.packages:
104 src_dir = self.get_package_dir(package)
107 build_dir = os.path.join(*([self.build_lib] + package.split('.')))
116 file[plen:] for file in self.find_data_files(package, src_dir)
118 data.append((package, src_dir, build_dir, filenames))
121 def find_data_files(self, package, src_dir): argument
124 + 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
148 path = package.split('.')
183 def check_package(self, package, package_dir): argument
198 if package:
217 def find_package_modules(self, package, package_dir): argument
218 self.check_package(package, package_dir)
227 modules.append((package, module, f))
258 package = '.'.join(path[0:-1])
262 (package_dir, checked) = packages[package]
264 package_dir = self.get_package_dir(package)
268 init_py = self.check_package(package, package_dir)
269 packages[package] = (package_dir, 1)
271 modules.append((package, "__init__", init_py))
280 modules.append((package, module_base, module_file))
294 for package in self.packages:
295 package_dir = self.get_package_dir(package)
296 m = self.find_package_modules(package, package_dir)
303 def get_module_outfile(self, build_dir, package, module): argument
304 outfile_path = [build_dir] + list(package) + [module + ".py"]
310 for (package, module, module_file) in modules:
311 package = package.split('.')
312 filename = self.get_module_outfile(self.build_lib, package, module)
324 for package, src_dir, build_dir, filenames in self.data_files
330 def build_module(self, module, module_file, package): argument
331 if isinstance(package, str):
332 package = package.split('.')
333 elif not isinstance(package, (list, tuple)):
340 outfile = self.get_module_outfile(self.build_lib, package, module)
347 for (package, module, module_file) in modules:
352 self.build_module(module, module_file, package)
355 for package in self.packages:
365 package_dir = self.get_package_dir(package)
366 modules = self.find_package_modules(package, package_dir)
371 assert package == package_
372 self.build_module(module, module_file, package)
411 def build_module(self, module, module_file, package): argument
412 res = build_py.build_module(self, module, module_file, package)