forked from cloudflare/bpftools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (25 loc) · 724 Bytes
/
setup.py
File metadata and controls
29 lines (25 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
from __future__ import print_function
import os
import setuptools
import shutil
import sys
if not os.path.exists("bpftools/bpf_asm"):
os.system("make -C linux_tools")
if not os.path.exists("linux_tools/bpf_asm"):
print("Type 'make' before packaging", file=sys.stderr)
sys.exit(-1)
shutil.copy("linux_tools/bpf_asm", "bpftools")
setuptools.setup(
name="bpftools",
version="1.0",
description="BPF Tools - packet analyst toolkit",
url="https://github.com/cloudflare/bpftools",
packages=["bpftools"],
maintainer="Marek Majkowski",
maintainer_email="marek@cloudflare.com",
package_data={
"": ["bpf_asm"],
},
zip_safe=False,
)