@@ -129,8 +129,11 @@ def build_extension(self, ext: CMakeExtension) -> None:
129129 description = "Python Bindings for Libbpf" ,
130130 long_description = long_description ,
131131 long_description_content_type = "text/markdown" ,
132- url = "https://github.com/varun-r-mallya/pylibbpf" ,
133- ext_modules = [CMakeExtension ("pylibbpf" )],
132+ url = "https://github.com/pythonbpf/pylibbpf" ,
133+ packages = find_packages (where = "." ),
134+ package_dir = {"" : "." },
135+ py_modules = [], # Empty since we use packages
136+ ext_modules = [CMakeExtension ("pylibbpf.pylibbpf" )],
134137 cmdclass = {"build_ext" : CMakeBuild },
135138 zip_safe = False ,
136139 classifiers = [
@@ -147,6 +150,16 @@ def build_extension(self, ext: CMakeExtension) -> None:
147150 "Topic :: Software Development :: Libraries :: Python Modules" ,
148151 "Topic :: System :: Operating System Kernels :: Linux" ,
149152 ],
153+ install_requires = [
154+ "llvmlite>=0.40.0" , # Required for struct conversion
155+ ],
150156 extras_require = {"test" : ["pytest>=6.0" ]},
151157 python_requires = ">=3.8" ,
158+ package_data = {
159+ "pylibbpf" : [
160+ "*.py" ,
161+ "py.typed" , # For type hints
162+ ],
163+ },
164+ include_package_data = True ,
152165)
0 commit comments