diff --git a/quicktex/dds.py b/quicktex/dds.py index af29e06..223a09a 100644 --- a/quicktex/dds.py +++ b/quicktex/dds.py @@ -166,7 +166,7 @@ class DDSFile: # WRITE HEADER file.write(struct.pack('<7I44x', DDSFile.header_bytes, int(self.flags), self.size[1], self.size[0], self.pitch, self.depth, self.mipmap_count)) - file.write(struct.pack('<2I4s5I', 32, int(self.pfflags), bytes(self.four_cc, 'ascii'), self.pixel_size, *self.pixel_bitmasks)) + file.write(struct.pack('<2I4s5I', 32, int(self.pf_flags), bytes(self.four_cc, 'ascii'), self.pixel_size, *self.pixel_bitmasks)) file.write(struct.pack('<4I4x', *self.caps)) assert file.tell() == 4 + DDSFile.header_bytes, 'error writing file: incorrect header size' diff --git a/setup.py b/setup.py index 762604e..6235805 100644 --- a/setup.py +++ b/setup.py @@ -121,7 +121,7 @@ setup( python_requires=">=3.7", ext_modules=[CMakeExtension("_quicktex")], cmdclass={"build_ext": CMakeBuild}, - packages=['quicktex'], + packages=find_packages(where='.', include=['quicktex*']), package_dir={'': '.'}, package_data={'': ['py.typed'] + stubs}, include_package_data=True,