offwhitelotus offwhitelotus - 11 months ago 42
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 -O streamparse.tar.gz
tar -zxvf streamparse.tar.gz
python streamparse-3.0.1/ develop

also @dougdragon's method below works

Answer Source

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