Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Nov 2013 00:44:45 +0100
From:      Nicola Vitale <nivit@FreeBSD.org>
To:        William Grzybowski <william88@gmail.com>
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:  <CAEQKd7UCWxPaFT0fmBs=-wukzW7WHaswF2wiZz3uuWAJxsHe=w@mail.gmail.com>
In-Reply-To: <CAHtVNLOfy8yUEJSDpzR=dT-DSo=QdvEd474uvesPphL1PeMzHg@mail.gmail.com>
References:  <201310312121.r9VLLp4d066004@svn.freebsd.org> <20131031214346.GA1402@medusa.sysfault.org> <CAHtVNLOfy8yUEJSDpzR=dT-DSo=QdvEd474uvesPphL1PeMzHg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEQKd7UCWxPaFT0fmBs=-wukzW7WHaswF2wiZz3uuWAJxsHe=w>