On Wed, Jun 13, 2012 at 12:09:23AM -0300, Mariano Mara wrote:
> Quoting Mike Orr (2012-06-12 22:49:36)
> > On Tue, Jun 12, 2012 at 3:36 PM, Wade Leftwich <[email protected]> wrote:
> > > With the Pyramid docs in ebook form on my phone I tend to browse them
> > > at odd times. Today, standing in line at the post office, I stopped at
> > > this paragraph right near the beginning:
> > > """
> > > It’s useful to use a Python interpreter that isn’t the “system” Python
> > > interpreter to develop your software. The authors of Pyramid tend not
> > > to use the system Python for development purposes; always a self-
> > > compiled one. Compiling Python is usually easy, and often the “system”
> > > Python is compiled with options that aren’t optimal for web
> > > development.
> > > """
> > > ... and wondered what the best compilation options for web development
> > > might be. I generally use whatever comes with Ubuntu, which seems to
> > > work OK. Does anyone have config tips to share?
> > 
> > Where does it say this? I've never heard of it. I always use the
> > system Python if it's the right version, but with a virtualenv.
> > 
> > However, it's correct that compiling Python is easy, (except on
> > Windows where a compiler doesn't come with the OS).  For Ubuntu:
> > 
> > $ sudo apt-get install build-essential
> > $ cd Python-2.7
> > $ ./configure --prefix=/usr/local/bin
> > $ make
> > $ make install
> > 
> > But I don't know what nonstandard options would be "better for web 
> > development".
> > 
> 
> Just a little recommendation that I can _barely_ recall it gave me trouble in
> the past: verify that you have the developer headers for sqlite3 and zlib,
> otherwise you won't have access to sqlite and, regarding zlib, some third 
> party
> library might complain (such as PIL) while compiling.

libreadline-dev is also something I would want to have if I ever had to
build my own Python.  apt-get build-dep is a very good idea on Ubuntu.

Personally, I trust Ubuntu's Python more than a self-compiled one, but I
don't have good arguments to support that position, and I might even be
*gasp!* mistaken.

Marius Gedminas
-- 
"What's the name of the new OO COBOL -- an equivalent of C++?"
"ADD 1 TO COBOL GIVING COBOL"

Attachment: signature.asc
Description: Digital signature

Reply via email to