From owner-svn-ports-head@FreeBSD.ORG Fri Nov 1 00:10:03 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 8C7FC47F; Fri, 1 Nov 2013 00:10:03 +0000 (UTC) (envelope-from william88@gmail.com) Received: from mail-lb0-x22d.google.com (mail-lb0-x22d.google.com [IPv6:2a00:1450:4010:c04::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2F1AE2DBE; Fri, 1 Nov 2013 00:10:02 +0000 (UTC) Received: by mail-lb0-f173.google.com with SMTP id w7so3017025lbi.32 for ; Thu, 31 Oct 2013 17:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=A+QvXoHE0DH6nEOPBxIwWtR1hWAamg23P5dTnG2B5nU=; b=HczemOMURSsKm6Dvx0zPaIGlLuO5k6NtOzM4yl+he0wwmMdN7CRGwth3Tu3zlqOzMy D/jkF2rCDaRYuQaT6s7pcvGFobhzdfDIsasaty7SZDgH754PJp8i7Gd9dSXUqX9seYjr qqx6RRhUTE8fvrrFmQN5MPd3S5KOm4IBgjJKDKdjoJH54D+YmIUMx1QReXNL9Qs9MhYs /dfYFM/HBtXi4p27/D5oj5mpl17xyyR7vq/yC3CQY3u0TF1Rx38S/qe07DgWrJ9zeyPR Hc1LViO9gQ6w9FDtdfh+ZlOxMCJKWop/SdNBQSIgHuyRrEYiCsWfl7oLsc/qndOjMuHA OveA== MIME-Version: 1.0 X-Received: by 10.152.45.42 with SMTP id j10mr160860lam.15.1383264600192; Thu, 31 Oct 2013 17:10:00 -0700 (PDT) Received: by 10.114.176.34 with HTTP; Thu, 31 Oct 2013 17:10:00 -0700 (PDT) In-Reply-To: References: <201310312121.r9VLLp4d066004@svn.freebsd.org> <20131031214346.GA1402@medusa.sysfault.org> Date: Thu, 31 Oct 2013 22:10:00 -0200 Message-ID: Subject: Re: svn commit: r332287 - in head/sysutils: . py-halite py-halite/files From: William Grzybowski To: Nicola Vitale Content-Type: text/plain; charset=ISO-8859-1 Cc: "svn-ports-head@freebsd.org" , Veniamin Gvozdikov , Marcus von Appen , "svn-ports-all@freebsd.org" , ports-committers X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2013 00:10:03 -0000 On Thu, Oct 31, 2013 at 9:44 PM, Nicola Vitale wrote: > Hi, > >> [2013/10/31 William Grzybowski ] >> 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 > .include > .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 > > 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