svn commit: r332287 - in head/sysutils: . py-halite py-halite/files

William Grzybowski william88 at gmail.com
Fri Nov 1 22:29:56 UTC 2013


On Thu, Oct 31, 2013 at 11:30 PM, Nicola Vitale <nivit at freebsd.org> wrote:
> Hi William,
>
>> [2013/11/1 William Grzybowski <william88 at gmail.com>]
>> Did you see any drawbacks with this? Or any essential difference from
>> what you did?
>
> No, I didn't. The idea is the same, but I think that it is essential
> to add PYTHONUSERBASE to MAKE_ENV,
> otherwise you could get an error such as
>
> error: ***/work/stage/usr/local/lib/python2.7/site-packages (in
> --site-dirs) is not on sys.path
>
> when trying to stage.
>
> Besides, IMO, it is also important to use those options in
> PYDISTUTILS_INSTALLARGS, in particular --user, and --multi-version to
> avoid that easy_install creates the file
> ${STAGEDIR}usr/local/lib/pythonX.Y/site-packages/easy-install.pth.
>
>> We may come up with something and just commit it, if it works for 95%
>> of the ports is good enough IMO, until setuptools implements a
>> DESTDIR.
>
> I think so, and IMO it not hard to merge both solutions and put them
> in <bsd.python.mk> if they were to operate.
>
> --
> Nicola Vitale

Hi Nicola & all,

I made some modifications, care to take a look?
http://people.freebsd.org/~wg/easyinstall-stage-v2.txt

I did not see a difference with -m or --user but we might add it.
I know it is all looking ugly, but better than nothing, maybe :)

Worked ok in a few ports that I tested.



-- 
William Grzybowski
------------------------------------------
Curitiba/PR - Brasil


More information about the svn-ports-head mailing list