[Slackbuilds-users] Installing Python packages

Jeremy Hansen jebrhansen+SBo at gmail.com
Fri Jul 14 19:31:10 UTC 2017


Just so you know, unless there's binaries created outside of the
/usr/lib/python-*/ directories, you can safely compile both the python2 and
python3 versions in the same SlackBuild.

You can just add a second line to run "python3 setup.py install
--root=$PKG" and each will be installed into their respective python
folders.

This way, if any python2 programs/scripts rely on these programs, it won't
break them.

Jeremy

On Fri, Jul 14, 2017, 3:26 PM Rich Shepard <rshepard at appl-ecosys.com> wrote:

> On Fri, 14 Jul 2017, Audrius Kažukauskas wrote:
>
> > virtualenv is included in Python 3 Standard Library as venv[*] module.
> The
> > name of executable is pyvenv, but it was deprecated recently, although
> > it's still there and usable:
> >
> >  The pyvenv script has been deprecated as of Python 3.6 in favor of using
> >  python3 -m venv to help prevent any potential confusion as to which
> >  Python interpreter a virtual environment will be based on.
> >
> > Regarding other packages you have listed, you'll need to rebuild them
> > using python3, I don't see any other way around it.
> >
> > [*] https://docs.python.org/3/library/venv.html
>
>    Thanks, Audrius. I'll rebuild the packages and read about venv.
>
> Much appreciated,
>
> Rich
> _______________________________________________
> SlackBuilds-users mailing list
> SlackBuilds-users at slackbuilds.org
> http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170714/ab13d86d/attachment-0001.html>


More information about the SlackBuilds-users mailing list