Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113004 - scapy-1.0.2 doesn't install as a python module
Summary: scapy-1.0.2 doesn't install as a python module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Andrea Barisani (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-19 08:27 UTC by Mike Auty (RETIRED)
Modified: 2007-05-31 10:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
A scapy.py wrapper for /usr/bin/scapy (scapy_wrapper,82 bytes, application/octet-stream)
2005-12-04 19:33 UTC, Scott Hadfield (RETIRED)
Details
installs scapy python module (scapy_python_module.patch,836 bytes, patch)
2005-12-04 19:37 UTC, Scott Hadfield (RETIRED)
Details | Diff
Diff that installs python module + takes care of .py[co] files (scapy-1.0.2-r1.ebuild.diff,1.15 KB, patch)
2005-12-17 16:41 UTC, Bryan Østergaard (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Auty (RETIRED) gentoo-dev 2005-11-19 08:27:44 UTC
Hi, I couldn't reopen bug #112727, so I've filed a new bug.

The net-analyzer/scapy-1.0.2 ebuild doesn't install scapy as a python module,
meaning that to use it in other projects it must be manually installed
separately into the site-packages directory.  An ebuild could install scapy.py
into the site-packages directory, and then install a wrapper script into
/usr/bin to run it directly.

Obviously the wrapper script would need to know where to look for scapy, but
this shouldn't be too difficult.  This would then allow people to make use of
the scapy library/framework with the line "import scapy".  I'd say leave it in
net-analyzer rather than dev-python, because otherwise people may never see it...
Comment 1 Scott Hadfield (RETIRED) gentoo-dev 2005-12-04 19:33:46 UTC
Created attachment 74077 [details]
A scapy.py wrapper for /usr/bin/scapy

A simple wrapper script that can be dropped into /usr/bin/ to run scapy.
Comment 2 Scott Hadfield (RETIRED) gentoo-dev 2005-12-04 19:37:19 UTC
Created attachment 74078 [details, diff]
installs scapy python module

a patch for scapy-1.0.2.ebuild that will install scapy.py into the
site-packages folder.
Comment 3 Andrea Barisani (RETIRED) gentoo-dev 2005-12-06 11:30:23 UTC
CCing kloeri because he's so nice and he will help me with evaluating this. I
don't like the wrapper idea btw, I'd prefer to copy it twice rather than having
something named /usr/bin/scapy that's actually a wrapper.
Comment 4 Scott Hadfield (RETIRED) gentoo-dev 2005-12-06 11:55:36 UTC
Fair enough. I suppose having the wrapper could do more harm than good in the
long run, but it's pretty trivial. I'm personally pretty impartial to the
wrapper, but I would like to see scapy.py installed as a module.
Comment 5 Bryan Østergaard (RETIRED) gentoo-dev 2005-12-17 16:41:27 UTC
Created attachment 74964 [details, diff]
Diff that installs python module + takes care of .py[co] files

Copying the scapy file twice is the cleanest solution to me, so I fixed up Scotts ebuild with .py[co] generation on installation and cleanup on removal.
Comment 6 Andrea Barisani (RETIRED) gentoo-dev 2005-12-18 03:25:05 UTC
Thx kloeri! ;)

Commited. Closing the bug. Re-open if necessary.