Date: Thu, 31 Oct 2013 22:10:00 -0200 From: William Grzybowski <william88@gmail.com> To: Nicola Vitale <nivit@freebsd.org> Cc: "svn-ports-head@freebsd.org" <svn-ports-head@freebsd.org>, Veniamin Gvozdikov <vg@freebsd.org>, Marcus von Appen <mva@freebsd.org>, "svn-ports-all@freebsd.org" <svn-ports-all@freebsd.org>, ports-committers <ports-committers@freebsd.org> Subject: Re: svn commit: r332287 - in head/sysutils: . py-halite py-halite/files Message-ID: <CAHtVNLOTs7t9PPLsE1AOz1EC0i1vs1BWpchNunBqCirqv0EWCA@mail.gmail.com> In-Reply-To: <CAEQKd7UCWxPaFT0fmBs=-wukzW7WHaswF2wiZz3uuWAJxsHe=w@mail.gmail.com> References: <201310312121.r9VLLp4d066004@svn.freebsd.org> <20131031214346.GA1402@medusa.sysfault.org> <CAHtVNLOfy8yUEJSDpzR=dT-DSo=QdvEd474uvesPphL1PeMzHg@mail.gmail.com> <CAEQKd7UCWxPaFT0fmBs=-wukzW7WHaswF2wiZz3uuWAJxsHe=w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 31, 2013 at 9:44 PM, Nicola Vitale <nivit@freebsd.org> wrote: > Hi, > >> [2013/10/31 William Grzybowski <william88@gmail.com>] >> Yes, easy_install does not support staging. > > I have just tried the following solution with a couple of my ports, > and it seems to work: > > MAKE_ENV= PYTHONUSERBASE=${STAGEDIR}${PYTHONBASE} > > # the next two lines are necessary to override the definition in <bsd.python.mk> > .include <bsd.port.pre.mk> > .undef PYDISTUTILS_INSTALLARGS > > # the first option is not necessary for staging > PYDISTUTILS_INSTALLARGS= --always-unzip \ > --install-dir > ${STAGEDIR}${PYEASYINSTALL_SITELIBDIR} \ > --no-deps \ > --quiet \ > --script-dir > ${STAGEDIR}${PYEASYINSTALL_BINDIR} \ > --site-dir > ${STAGEDIR}${PYEASYINSTALL_SITELIBDIR} \ > --user \ > ${WRKSRC}/dist/${PYEASYINSTALL_EGG} > > #post-stage-dir: > post-build: > @${MKDIR} ${STAGEDIR}${PYEASYINSTALL_BINDIR} \ > ${STAGEDIR}${PYEASYINSTALL_SITELIBDIR} > > # see https://wiki.freebsd.org/ports/StageDir > post-install: > (cd ${STAGEDIR}${PREFIX} && \ > ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \ > -d ${PREFIX} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;}) > > .include <bsd.port.post.mk> > > It may have some drawbacks? Yes, I've proposed a patch for stage and easy_install which does pretty much what you did but in bsd.python.mk. It was rejected, I don't know the reason, maybe because easy_install may install site.py and friends in the staging area. -- William Grzybowski ------------------------------------------ Curitiba/PR - Brasil
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHtVNLOTs7t9PPLsE1AOz1EC0i1vs1BWpchNunBqCirqv0EWCA>