def getExtraDlls(self, module): if module.getFullName() == "glfw": dll_filename = self._getDLLFilename() yield makeDllEntryPoint( source_path=dll_filename, dest_path=os.path.join("glfw", os.path.basename(dll_filename)), package_name="glfw.library", )
def getExtraDlls(self, module): if module.getFullName() == "zmq" and self.dll_directory is not None: for dll_filename in getFileList(self.dll_directory): yield makeDllEntryPoint( source_path=dll_filename, dest_path=os.path.join("pyzmq.libs", os.path.basename(dll_filename)), package_name="zmq", )
def _getScipyCoreBinaries(scipy_dir): """Return binaries from the extra-dlls folder (Windows only).""" for dll_dir_name in ("extra_dll", ".libs"): dll_dir_path = os.path.join(scipy_dir, dll_dir_name) if os.path.isdir(dll_dir_path): for source_path, source_filename in listDir(dll_dir_path): if source_filename.lower().endswith(".dll"): yield makeDllEntryPoint( source_path=source_path, dest_path=os.path.join("scipy", dll_dir_name, source_filename), package_name="scipy", )
def makeDllEntryPoint(cls, source_path, dest_path, package_name): """Create an entry point, as expected to be provided by getExtraDlls.""" return makeDllEntryPoint(source_path=source_path, dest_path=dest_path, package_name=package_name)