hgn / captcp

A open source program for TCP analysis of PCAP files
http://research.protocollabs.com/captcp/
GNU General Public License v3.0
113 stars 40 forks source link

Use setup.py for install, create a package to handle datafiles #27

Closed mrueg closed 9 years ago

mrueg commented 9 years ago

When I tried to package captcp, I had some issues because of the mixed install process and the directories the data files got installed to. This pull request creates a python package and moves the files in data and the original captcp.py to it. In future it should be possible to split catcp.py into separate python modules. In addition I removed the Makefile and let setup.py handle the full install.

hgn commented 9 years ago

Hey Manuel! Thank you for the work. Sorry for the delay - I will check you patch, primary because some guys already build some distro packages.

hgn commented 9 years ago

One short question: now that the Makefile is gone. How do I install captcp? What are the steps to do so? Until now it was possible to start ./captcp without installing it. This was handy in some situations where you don't wanted to install or had no rights to install something.

mrueg commented 9 years ago

"python setup.py install" should be sufficient to install it. Unfortunately you can't run it from tarball now, because python does not know about the module. Please don't merge the pull request right now, I might have a solution for that.

hgn commented 9 years ago

Great, I wait!