On 2016/04/09 22:52, Michael Reed wrote:
> +do-test:
> + (cd ${WRKSRC} ;\
> + virtualenv-3 --system-site-packages --no-pip borg-env ;\
> + . borg-env/bin/activate ;\
> + python${MODPY_DEFAULT_VERSION_3} ./setup.py install ;\
python${MODPY_DEFAULT_VERSION_3} should just be ${MODPY_BIN}
> + cd build/lib.openbsd-$$(uname -r)-$$(uname
> -m)-${MODPY_DEFAULT_VERSION_3} ;\
> + export PYTHONPATH=`pwd` ;\
> + rm borg/testsuite/benchmark.py ;\
> + py.test-3 --pyargs borg.testsuite)
...but it fails for me, it looks like it should use a different dir:
(cd /usr/obj/ports/borgbackup-1.0.1/borgbackup-1.0.1 ; virtualenv-3
--system-site-packages --no-pip borg-env ; . borg-env/bin/activate ;
/usr/local/bin/python3.4 ./setup.py install ; cd build/lib.openbsd-$(uname
-r)-$(uname -m)-3.4 ; export PYTHONPATH=`pwd` ; rm borg/testsuite/benchmark.py
; py.test-3 --pyargs borg.testsuite)
Using base prefix '/usr/local'
New python executable in borg-env/bin/python3.4
Also creating executable in borg-env/bin/python
Installing setuptools, wheel...done.
running install
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied:
'/usr/local/lib/python3.4/site-packages/test-easy-install-1018.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.4/site-packages/