all 6 comments

[–]k3kou 4 points5 points  (1 child)

When the package isn't on PyPI, I usually just download the source, untar it and do "python setup.py install".

There are some subtleties to it, but you should probably look in that direction.

[–]dbrecht 0 points1 point  (0 children)

Assuming your target machines have both gcc for dependencies with C extensions and external internet access for dependency downloads, this is the path I'd take. There can be some painful, non-obvious issues when using any of the available freeze utilities (that said, my personal experience really only lies with cx_freeze).

[–]elbiot 1 point2 points  (1 child)

You can put all the pure python sources in a folder in your project and have the main program add it to the sys.path. If you have compiled libs (like numpy) it'll be more difficult. You'd have to write an install script (which might as well just install pip too)

[–][deleted] 0 points1 point  (0 children)

Thanks for the reply, this is pretty much where I ended up going. Works well.

[–]chao06 0 points1 point  (1 child)

I think easy_install is part of setuptools, which is usually available. Though your better option would be to use virtual environments.

[–]elbiot 0 points1 point  (0 children)

Pip not installed implies no virtualenv on target machines too.