from setuptools import setup, Distribution, Extension from setuptools.command.build_ext import build_ext as build_ext_orig class CTypesExtension(Extension): pass class build_ext(build_ext_orig): def get_export_symbols(self, ext): return ext.export_symbols def get_ext_filename(self, ext_name): return ext_name.replace(".", "/") + '.so' setup(name='leylines-monocypher', version='0.1', description='Sample text', url='https://awoo.systems', author='haskal', author_email='haskal@awoo.systems', license='AGPLv3', packages=['monocypher'], package_data={"monocypher": ["py.typed"]}, ext_modules=[ CTypesExtension("monocypher.ext", include_dirs=["monocypher-git/src/"], sources=["monocypher-git/src/monocypher.c", "monocypher-git/src/optional/monocypher-ed25519.c"]) ], cmdclass={"build_ext": build_ext}, include_package_data=True, zip_safe=False)