Skip to content

Commit bbb3989

Browse files
committed
Fix setup.py
1 parent 23cafa4 commit bbb3989

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

setup.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)