forked from invernizzi/scapy-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (31 loc) · 1016 Bytes
/
setup.py
File metadata and controls
37 lines (31 loc) · 1016 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
30
31
32
33
34
35
36
37
from setuptools import setup
from distutils.command.install import install
import os.path
import shutil
VERSION = '1.7'
def install_into_scapy(a):
print('Installing the HTTP layer extension into Scapy...')
import scapy
target_path = os.path.join(
os.path.dirname(scapy.__file__),
'layers'
)
source_path = os.path.join(
os.path.dirname(__file__),
'scapy_http/http.py'
)
shutil.copy2(source_path, target_path)
print('done!')
install.sub_commands.append(('install_into_scapy', install_into_scapy))
setup(
name="scapy-http",
packages=['scapy_http'],
version=VERSION,
description="HTTP-layer support for Scapy",
install_requires=['scapy'],
author=['Luca Invernizzi, Steeve Barbeau'],
author_email=['invernizzi.l@gmail.com'],
url='https://github.com/invernizzi/scapy-http',
download_url='https://github.com/invernizzi/scapy-http/tarball/' + VERSION,
keywords=['http', 'scapy', 'newtork', 'dissect', 'packets']
)