Minimum set of libraries/files to run Python and Google Protocol Buffer (CentOS)

35 views
Skip to first unread message

Eric

unread,
Apr 7, 2010, 5:01:52 PM4/7/10
to Protocol Buffers
Hello,
I have Python and Google Protocol Buffers running on a CentOS system
using the standard install. I want to run my Python scripts on a
production server (also CentOS) but if possible I would like avoid
doing the full install. Is there a relatively small subset of files I
can copy from the development system to the production server to get
this running?

thanks again,
Eric

Kenton Varda

unread,
Apr 7, 2010, 6:03:31 PM4/7/10
to Eric, Protocol Buffers
You need all the files that don't have "test" in the name.  (The test files shouldn't be installed anyway.)

Protobufs do not depend on anything outside the Python standard library.


--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.


Sherry Yang

unread,
Apr 7, 2010, 6:29:31 PM4/7/10
to Kenton Varda, Protocol Buffers
Kenton,
  Thanks for the followup. I actually copied over the complete install to the production server and this did not help. Here are the directories (and their subdirectories) I copied:
 protobuf-2.3.0]$ ls
aclocal.m4    config.status     editors                       libtool      protobuf-lite.pc     stamp-h1
autogen.sh    config.sub        examples                      ltmain.sh    protobuf-lite.pc.in  vsprojects
CHANGES.txt   configure         generate_descriptor_proto.sh  m4           protobuf.pc
config.guess  configure.ac      gtest                         Makefile     protobuf.pc.in
config.h      CONTRIBUTORS.txt  install-sh                    Makefile.am  python
config.h.in   COPYING.txt       INSTALL.txt                   Makefile.in  README.txt
config.log    depcomp           java                          missing      src

Am I doing the right thing?

Eric

Jason Hsueh

unread,
Apr 7, 2010, 6:52:15 PM4/7/10
to Sherry Yang, Kenton Varda, Protocol Buffers
It looks like you just copied over the source code. You need to install the modules in a place where python can find them: the python/setup.py script does this for you.

Kenton Varda

unread,
Apr 7, 2010, 8:22:45 PM4/7/10
to Sherry Yang, Protocol Buffers
Sorry, I meant all the python source code files without "test" in the name.

You do not need any of the C++ or Java stuff if you are only using Python in production.

On Wed, Apr 7, 2010 at 3:29 PM, Sherry Yang <yangc...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages