예제 #1
0
    def considerDataFiles(self, module):
        if module.getFullName() in known_data_files:
            for filename in known_data_files[module.getFullName()]:
                source_path = joinpath(module.getCompileTimeFilename(),
                                       filename)

                # so we can ".." out from what is a filename, we have to
                # normalize the result, or else checking for existance or
                # opening it will fail.
                source_path = normpath(source_path)

                if isFile(source_path):
                    yield (source_path,
                           normpath(
                               joinpath(
                                   module.getFullName().replace(
                                       '.', os.path.sep), filename)))
예제 #2
0
    def considerExtraDlls(self, dist_dir, module):
        full_name = module.getFullName()

        if getOS() == "Linux" and full_name == "uuid":
            uuid_dll_path = locateDLL("uuid")
            dist_dll_path = joinpath(dist_dir, basename(uuid_dll_path))

            shutil.copy(uuid_dll_path, dist_dir)

            return ((dist_dll_path, None), )

        return ()
예제 #3
0
    def considerExtraDlls(self, dist_dir, module):
        full_name = module.getFullName()

        if getOS() == "Linux" and full_name == "uuid":
            uuid_dll_path = locateDLL("uuid")
            dist_dll_path = joinpath(dist_dir, basename(uuid_dll_path))

            shutil.copy(uuid_dll_path, dist_dir)

            return (
                (dist_dll_path, None),
            )

        return ()
예제 #4
0
    def considerDataFiles(self, module):
        if module.getFullName() in known_data_files:
            for filename in known_data_files[module.getFullName()]:
                source_path = joinpath(
                    module.getCompileTimeFilename(),
                    filename
                )

                # so we can ".." out from what is a filename, we have to
                # normalize the result, or else checking for existance or
                # opening it will fail.
                source_path = normpath(source_path)

                if isFile(source_path):
                    yield (
                        source_path,
                        normpath(
                            joinpath(
                                module.getFullName().replace('.', os.path.sep),
                                filename
                            )
                        )
                    )