py27 ./. py3 version of ports
Mathieu Arnold
mat at FreeBSD.org
Fri Jan 11 15:52:42 UTC 2019
On Fri, Jan 11, 2019 at 02:40:02PM +0100, Matthias Apitz wrote:
> El día viernes, enero 11, 2019 a las 11:53:09a. m. +0100, Mathieu Arnold escribió:
>
> > > > The background for my question is: I'm porting an AI system
> > > > https://community.mycroft.ai/t/mycroft-on-freebsd/5119/8
> > > > to CURRENT which is written for Linux and make excessive use of Python3.
> > > >
> > > > What I have to set in poudriere to get some required py3 packages built as
> > > > well, but WITHOUT changing the dependency for my ~2000 packages which pulled
> > > > somehow in the standard py27 ports?
> > >
> > > Sure. You can build the py36 ports you want in addition to the regular py27
> > > ones. Just add the port name(s) to your build list appended with '@py36'.
> > > It's generally safe to have both python27 and python36 packages of the same
> > > module installed simultaneously -- just remember to use 'python3' on the
> > > command line or in shebangs.
> >
> > python3.6. python3 is only there if you install the lang/python3 port.
> > (Which you probably should not.)
>
> The above software in question needs python3 which I do have installed.
> Why I should not?
If it is only on your local machine, it is absolutely not a problem.
On the other hand, if you are porting an application, python3 is not a
valid shebang, and you must use USES=shebangfix to fix the offending
files.
--
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20190111/bd5e8c3c/attachment.sig>
More information about the freebsd-ports
mailing list