Date: Fri, 24 Feb 2012 18:46:52 +0800 From: Li-Wen Hsu <lwhsu@FreeBSD.org> To: "Sean C. Farley" <scf@freebsd.org> Cc: freebsd-python@freebsd.org Subject: Re: Install shared objects into site-packages Message-ID: <CAKBkRUzMejJiUvLYkMDeL6WJ5teqTHr-YmMU=t_w6A1d_0==NA@mail.gmail.com> In-Reply-To: <alpine.BSF.2.02.1202192233110.69548@thor.farley.org> References: <alpine.BSF.2.02.1202192233110.69548@thor.farley.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 20, 2012 at 11:42, Sean C. Farley <scf@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKBkRUzMejJiUvLYkMDeL6WJ5teqTHr-YmMU=t_w6A1d_0==NA>