Wheel builds, but fails to install complaining about unexpected file in .data

Looks like this section is the cause, and it’s just installing type hints which I don’t need anyway.

class InstallTypeinfo(install):
    def run(self):
        install.run(self)
        for pyi in glob.glob("typehinting/*.pyi"):
            shutil.copy(pyi, self.install_purelib)

Removing the for-loop produces a wheel which installs properly.

1 Like