svn commit: r332287 - in head/sysutils: . py-halite py-halite/files
William Grzybowski
william88 at gmail.com
Fri Nov 1 00:10:03 UTC 2013
On Thu, Oct 31, 2013 at 9:44 PM, Nicola Vitale <nivit at freebsd.org> wrote:
> Hi,
>
>> [2013/10/31 William Grzybowski <william88 at 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
More information about the svn-ports-head
mailing list