Skip to content

Fix build with setup.py on BSD #4679

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
raise OSError("Scapy no longer supports Python 2 ! Please use Scapy 2.5.0")

try:
from setuptools import setup
from setuptools import setup, find_packages
from setuptools.command.sdist import sdist
from setuptools.command.build_py import build_py
except:
Expand Down Expand Up @@ -82,7 +82,16 @@ def build_package_data(self):
_build_version(self.build_lib)

setup(
name='scapy',
version=__import__('scapy').VERSION,
packages=find_packages(exclude=["test"]),
cmdclass={'sdist': SDist, 'build_py': BuildPy},
# Build starting scripts automatically
entry_points={
'console_scripts': [
'scapy = scapy.main:interact'
]
},
data_files=[('share/man/man1', ["doc/scapy.1"])],
long_description=get_long_description(),
long_description_content_type='text/markdown',
Expand Down