Skip to content
This repository was archived by the owner on Jul 24, 2019. It is now read-only.

Commit 8bc87fa

Browse files
committed
Add setup.py
0 parents  commit 8bc87fa

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

setup.py

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#! /usr/bin/env python
2+
3+
"""
4+
Scapy-real: we raise an error and ask people to move away.
5+
"""
6+
7+
import warnings
8+
from setuptools import setup
9+
from setuptools.command.install import install
10+
11+
12+
long_description = """
13+
# Scapy-real is outdated. Please use Scapy instead #
14+
15+
This project only exists for historical reasons, and should
16+
not be used.
17+
18+
Links to scapy:
19+
- PyPi: https://pypi.org/project/scapy/
20+
- GitHub: https://github.com/secdev/scapy/
21+
- Website: https://scapy.net/
22+
"""
23+
24+
class PostInstallCommand(install):
25+
"""Post-installation for installation mode."""
26+
27+
def run(self):
28+
pad_desc = "\n" + "\n".join(("#" * 60,) * 3) + "\n"
29+
warnings.warn(pad_desc + long_description + pad_desc,
30+
DeprecationWarning, stacklevel=0)
31+
32+
33+
setup(
34+
name='scapy-real',
35+
packages=['scapy-real'],
36+
version='2.3',
37+
zip_safe=False,
38+
description='Legacy Scapy - Do not use',
39+
long_description=long_description,
40+
author='Philippe BIONDI',
41+
cmdclass={
42+
'install': PostInstallCommand,
43+
},
44+
)

0 commit comments

Comments
 (0)