offwhitelotus offwhitelotus - 3 months ago 8
Python Question

How do I install streamparse from source?

I need to use streamparse on a CentOS machine that does not have internet access, meaning I cannot use pip. The only net-enabled services I can use are scp and ssh. My plan is to get streamparse on my local machine (Ubuntu) and then scp the streamparse files to the CentOS machine and manually install from there.

Any ideas on how to do this?

edit: guy at work just showed me how to do this.

wget https://pypi.python.org/packages/8d/f8/9ccde77a90a30ef491bee431f157aee38dbd93b5f3c7545779a0acee71db/streamparse-3.0.1.tar.gz -O streamparse.tar.gz
tar -zxvf streamparse.tar.gz
python streamparse-3.0.1/setup.py develop


also @dougdragon's method below works

Answer

Once you have the lib files on the CentOS box you can use pip to install by passing the -e (editable) flag:

$ pip install -e path/to/SomeProject

Here's a link to pipy's #editable-installs section

Comments