#28132 closed submission (fixed)
NEW: py-pypcap - python binding to libpcap
Reported by: | andrew.reusch@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | petrrr, petrrr | |
Port: | py-pypcap |
Description
It's a simple python binding to libpcap. It uses pyrex to help create the bindings. It only depends on libpcap. There were a couple small changes to the customized setup.py script to get it to compile with the libpcap installed in ports.
Attachments (3)
Change History (12)
Changed 14 years ago by andrew.reusch@…
Attachment: | patch-setup.py.diff added |
---|
comment:1 Changed 14 years ago by andrew.reusch@…
comment:2 Changed 14 years ago by mf2k (Frank Schima)
Port: | py26-pypcap added |
---|---|
Version: | 1.9.2 |
Changed 14 years ago by andrew.reusch@…
Changed 14 years ago by andrew.reusch@…
Attachment: | patch-pcap.c.diff added |
---|
comment:3 Changed 14 years ago by andrew.reusch@…
There was problem with the pcap.next() causing a type error when it raised the StopIterator exception. This seems to be a problem with version of pyrex used to generate pcap.c. I've regenerated pcap.c using pyrexc-2.6 from the port repository and it no longer throws a type error. I've updated the portfile and uploaded a patch for pcap.c.
Would it be better to have the port exec the pyrex command when it is installed?
comment:4 Changed 13 years ago by jmroot (Joshua Root)
Sorry, it seems this fell through the cracks. Yes, it would be better to run pyrex than to have a 100 kB patch.
(You can ping the macports-dev list if a ticket seems to have been forgotten BTW.)
comment:6 Changed 10 years ago by petrrr
This is now really old, is there still interest in this. If yes, this should use the unified portgroup now.
comment:7 Changed 10 years ago by petrrr
Port: | py-pypcap added; py26-pypcap removed |
---|---|
Summary: | Portfile for pypcap - python binding to libpcap → py-pcap: new port - python binding to libpcap |
comment:9 Changed 9 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | py-pcap: new port - python binding to libpcap → NEW: py-pypcap - python binding to libpcap |
I've only tested it with python2.6. I can test with other versions if desired.