JustinAzoff / netflow-indexer

A program that uses xapian to index the flat file databases used by nfdump or flow-tools
http://justinazoff.github.com/netflow-indexer/
36 stars 4 forks source link

Binaries not being installed by pip install #7

Open elliotkendall opened 9 years ago

elliotkendall commented 9 years ago

First of all, the pip install command you list in the documentation,

pip install -s -E /usr/local/python_env/ netflowindexer-0.1.9.tar.gz

Doesn't seem to work. My pip install doesn't recognize -s or -E as valid options. I want to install in a specific path (I'm trying to build an RPM package), so I run it as:

pip install -vvv -t /path/to/install --no-deps netflow-indexer-0.1.38.tar.gz

The netflowindexer-0.1.38-py2.7.egg-info and netflowindexer directories get installed correctly, but no bin directory or any contents. I put the full output of pip_install in a gist:

https://gist.github.com/elliotkendall/54f70379eb0414c84129

This is on RHEL7 x86_64 with python 2.7.5 and python-pip 7.1.0 installed from EPEL. Any ideas?

JustinAzoff commented 9 years ago

Fun.. This is why I am trying to port it to go :-)

I'm not really sure what is going on here.. it looks like pip removed the -E option and the -t option doesn't actually work.

I just started up a centos7 container and it installed things just fine

In the past I have used fpm to build packages for it using 'fpm -s python -t rpm...'. That method works pretty well.

'python setup.py bdist_rpm' might be worth a try too. or at least '> python setup.py bdist_rpm --spec-only'

elliotkendall commented 9 years ago

Thanks for the feedback! "python setup.py bdist_rpm --spec-only" worked great. So my problem is fixed, although you probably still ought to fix the documentation so that it doesn't mention obsolete pip options.