Building for python3 instead of python2

Marcus von Appen mva at FreeBSD.org
Thu Sep 25 16:13:49 UTC 2014


On, Thu Sep 25, 2014, Axel Rau wrote:

> Hi all,
>
> I have a port with
> 	USES=	 python
> but it insists installing python2.7 instead of installed python3.4
>
> I played with
> 	DEFAULT_VERSIONS= python3:3.4
> without luck.

You are telling the system that the python_3_ interpreter shall use 3.4, but
not that the general python interpreter shall use it, thus it sticks to 2.7.

  DEFAULT_VERSIONS= python:3.4 python3:3.4

should enable this. You may want to reinstall lang/python and lang/python3
after setting this, so that /usr/local/bin/python links to python3.4.

Cheers
Marcus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20140925/812a3e9c/attachment.sig>


More information about the freebsd-python mailing list