From owner-freebsd-python@FreeBSD.ORG Fri Feb 24 11:11:29 2012 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0763F106566C; Fri, 24 Feb 2012 11:11:29 +0000 (UTC) (envelope-from lwhsu.freebsd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9FD5E8FC08; Fri, 24 Feb 2012 11:11:28 +0000 (UTC) Received: by vcmm1 with SMTP id m1so2152406vcm.13 for ; Fri, 24 Feb 2012 03:11:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=2I906/e1Y7bPZQNr/+ZE7Rel2jhm1OiyI1wG8DJmOnE=; b=BYqpdQATsLMhjS13ULrBYya1gBJC49/UScZP3jmuTzlMB6EVT9hrIamdONr4+g9lLr YjZHmI2K1fzCASa0/cnRweo6kfG5j2kINXcniB5F+brR2CjcR9Vm1gMASvFT8lcw7Iw2 uO641o9EVfmOcCUP4y5+T8+TgpKr1KTNHjyX4= MIME-Version: 1.0 Received: by 10.220.147.198 with SMTP id m6mr757915vcv.49.1330080412836; Fri, 24 Feb 2012 02:46:52 -0800 (PST) Sender: lwhsu.freebsd@gmail.com Received: by 10.220.96.142 with HTTP; Fri, 24 Feb 2012 02:46:52 -0800 (PST) In-Reply-To: References: Date: Fri, 24 Feb 2012 18:46:52 +0800 X-Google-Sender-Auth: 2Kh2B7D3Zf0cWQwudvM9Sw4c4GI Message-ID: From: Li-Wen Hsu To: "Sean C. Farley" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-python@freebsd.org Subject: Re: Install shared objects into site-packages X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2012 11:11:29 -0000 On Mon, Feb 20, 2012 at 11:42, Sean C. Farley wrote: > I am using virtualenv --no-site-packages (the default now) to be able to > build an environment on both FreeBSD and Linux. =C2=A0The issue I am runn= ing into > is that _sqlite3.so from databases/py-sqlite3 is being installed into > site-packages as opposed to lib-dynload. =C2=A0On the CentOS we are using= , > _sqlite3.so is installed in lib-dynload. > > I tried a bit to change the port's setup.py, but I have not been successf= ul. > =C2=A0How can databases/py-sqlite3 and other ports that are typically par= t of > Python by default be made to install into lib-dynload? > > These are the one that lang/python27 disables: > disabled_module_list =3D ["_bsddb", "_sqlite3", "_tkinter", "gdbm", "mpz"= ] Hi Sean, After reading databases/py-sqlite3/Makeilfe from NetBSD's pkgsrc, I have this patch: http://people.freebsd.org/~lwhsu/patch/py-sqlite3__lib-dynload.diff Due to time constraint, I haven't test it with virtualenv, please tell me if it works. I think changing the install destination of these built-in modules to the default position is right direction. But this patch is not a good solution, we need to handle PYDISTUTILS_INSTALLARGS better instead of putting between bsd.port.{pre,post}.mk . Please tell me if there is a better way to do this. Thanks. Li-Wen --=20 Li-Wen Hsu http://lwhsu.org