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
27 lines (23 loc) · 672 Bytes
/
setup.py
File metadata and controls
27 lines (23 loc) · 672 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
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 >> sys.stderr, "Type 'make' before packaigng"
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",
package_data = {
'': ['bpf_asm'],
},
zip_safe = False,
)