From owner-freebsd-python@FreeBSD.ORG  Sat Apr 19 23:32:06 2014
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 16BBAC26
 for <python@freebsd.org>; Sat, 19 Apr 2014 23:32:06 +0000 (UTC)
Received: from elvis.mu.org (elvis.mu.org [192.203.228.196])
 by mx1.freebsd.org (Postfix) with ESMTP id 064701D2A
 for <python@freebsd.org>; Sat, 19 Apr 2014 23:32:05 +0000 (UTC)
Received: from Alfreds-MacBook-Pro-9.local (c-76-21-10-192.hsd1.ca.comcast.net
 [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id 603E81A3C19
 for <python@freebsd.org>; Sat, 19 Apr 2014 16:32:03 -0700 (PDT)
Message-ID: <53530773.5060300@freebsd.org>
Date: Sat, 19 Apr 2014 16:32:03 -0700
From: Alfred Perlstein <alfred@freebsd.org>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7;
 rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: python@freebsd.org
Subject: question about virtualenv and sqlite (django/sqlalchemy)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 19 Apr 2014 23:32:06 -0000

Hey folks,

I finally figured out how to get sqlite based things to work under 
virtualenv under FreeBSD.

It seems like the default python on FreeBSD has sqlite disabled.

This is pretty rough for newbies such as myself who just want to follow 
someone else's HOWTO/blog-post for using virtualenv.

The way I "fixed it" was to hack the ports 
/usr/ports/databases/py-sqlite3/files/setup.py file and extract python 
and do it by hand.

Details are here:
http://t.co/cGFQ45BnBJ

So my question is, did I do it right?  Is there a better way to make 
virtualenv work outside of the box on FreeBSD?

Last time I just gave up on virtualenv, but that's probably because I'm 
not well versed in python system installation.

help?