Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2012 00:24:01 +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:  <20120307162401.GA34570@FreeBSD.cs.nctu.edu.tw>
In-Reply-To: <alpine.BSF.2.02.1203071034420.25725@thor.farley.org>
References:  <alpine.BSF.2.02.1202192233110.69548@thor.farley.org> <CAKBkRUzMejJiUvLYkMDeL6WJ5teqTHr-YmMU=t_w6A1d_0==NA@mail.gmail.com> <alpine.BSF.2.02.1203071034420.25725@thor.farley.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--cNdxnHkX5QqsyA0e
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 07, 2012 at 11:03:01 -0500, Sean C. Farley wrote:
> On Fri, 24 Feb 2012, Li-Wen Hsu wrote:
>=20
> > 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=
=20
> >> to build an environment on both FreeBSD and Linux. =A0The issue I am=
=20
> >> running into is that _sqlite3.so from databases/py-sqlite3 is being=20
> >> installed into site-packages as opposed to lib-dynload. =A0On the=20
> >> 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=20
> >> successful.  How can databases/py-sqlite3 and other ports that are=20
> >> typically part of Python by default be made to install into=20
> >> lib-dynload?
> >>
> >> These are the one that lang/python27 disables:
> >> disabled_module_list =3D ["_bsddb", "_sqlite3", "_tkinter", "gdbm", "m=
pz"]
> >
> > Hi Sean,
> >
> > After reading databases/py-sqlite3/Makeilfe from NetBSD's pkgsrc, I=20
> > 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=
=20
> > me if it works.
> >
> > I think changing the install destination of these built-in modules to=
=20
> > the default position is right direction.  But this patch is not a good=
=20
> > solution, we need to handle PYDISTUTILS_INSTALLARGS better instead of=
=20
> > putting between bsd.port.{pre,post}.mk .  Please tell me if there is a=
=20
> > better way to do this.  Thanks.
>=20
> It works.  Thank you!
>=20
> I do not know a better way to do it.  I tried a few things with=20
> files/setup.py to get it to install within lib-dynload but was=20
> unsuccessful.  If an environment variable would take care of the=20
> install-lib option, then maybe putting something into MAKE_ENV?

That's great!

Okay, the question is actually to all the readers of freebsd-python
list.  So please please try to help python infrastructure.  I'll try
to find a better solution of this issue (and other jRs under python@.)

Li-Wen

--=20
Li-Wen Hsu <lwhsu@FreeBSD.org>
http://lwhsu.org

--cNdxnHkX5QqsyA0e
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)

iEYEARECAAYFAk9Xi6EACgkQQWsOOSiXsigAQACeMrUPDeN742LOIZu6X3fg67TD
18QAoIyfcnVcnIYxTIeTK/Y+Tiu1R2Jb
=mf77
-----END PGP SIGNATURE-----

--cNdxnHkX5QqsyA0e--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120307162401.GA34570>