You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by Phillip B Oldham <ph...@gmail.com> on 2010/08/03 15:50:09 UTC

Packaging for Python

Is it "safe" to package the files generated & installed into the
python lib/site-packages directory for deployment, or do they depend
on other files/packages/libraries added to the system during install?

-- 
Phillip B Oldham
phillip.oldham@gmail.com
+44 (0) 7525 01 09 01

Re: Packaging for Python

Posted by Phillip B Oldham <ph...@gmail.com>.
On Tue, Aug 3, 2010 at 5:53 PM, David Reiss <dr...@facebook.com> wrote:
> I'm not sure if I understand your question, but I'll give two bits of
> information that might help.
>
> 1/ Thrift/Python has no external dependencies.  It only uses the Python
> standard library.
>
> 2/ The code generated by the Thrift compiler has to be used with the
> Thrift/Python runtime library from the same version.

Perfect.

Specifically; we have a pypi.python.org proxy to which we publish our
own eggs to be used as part of buildout/deployment scripts. Building
thrift on our various production servers seems unnecessary if we can
simply package up the thrift libraries and release them to our proxy.
It will also make upgrading easier as we can store `thrift-0.2.0.egg`,
`thrift-0.3.0-beta.egg`, etc in our proxy for use with various
servers/applications.

Thanks for your help!

-- 
Phillip B Oldham
phillip.oldham@gmail.com
+44 (0) 7525 01 09 01

Re: Packaging for Python

Posted by David Reiss <dr...@facebook.com>.
I'm not sure if I understand your question, but I'll give two bits of
information that might help.

1/ Thrift/Python has no external dependencies.  It only uses the Python
standard library.

2/ The code generated by the Thrift compiler has to be used with the
Thrift/Python runtime library from the same version.

--David

Phillip B Oldham wrote:
> Is it "safe" to package the files generated & installed into the
> python lib/site-packages directory for deployment, or do they depend
> on other files/packages/libraries added to the system during install?
>