Installing a port to a specific python version

Gerhard Schmidt schmidt at ze.tum.de
Fri Feb 2 06:35:45 UTC 2018


Am 01.02.2018 um 22:59 schrieb Roland Smith:
> If you look at pkg.freebsd.org you'll see that e.g. python packages are now
> built for each supported version of python. So you can now do things like::
> 
>     # pkg install py36-aniso8601
> 
> and that will find and install the python 3.6 version of the package even
> though the default python is still 2.7. This is a huge win, IMHO.

# pkg install py36-aniso8601

reports on my system

Installed packages to be REMOVED:
        xmlto-0.0.28
        w3m-0.5.3.20170102_1

New packages to be INSTALLED:
        py36-aniso8601: 1.3.0 [FreeBSD]
        py36-dateutil: 2.6.1 [FreeBSD]
        py36-six: 1.11.0 [FreeBSD]

Installed packages to be DOWNGRADED:
        boehm-gc: 7.6.2 -> 7.6.0 [FreeBSD]

Number of packages to be removed: 2
Number of packages to be installed: 3
Number of packages to be downgraded: 1

The operation will free 1 MiB.
254 KiB to be downloaded.

Why removing anything while installing new packages. Downgrading i could
understand if binaries are involved, but removing?

Sorry but pkg is only usable to install or update things if you only use
pkg. Installing packages via port kills pkg.

And BTW the same command has installed the correct package since pkg
exists. So flavors haven't improved anything here.

As said I'm doing this since mid 1990s and rely heavily on pkg when
installing new systems. Worked like charm since it arrived but only for
fresh install. After some month of updating and installing via ports the
problems shown above start to appear.

So i hope the portupgrade guys are fixing this soon.

Regards
   Estartu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 858 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20180202/b414b1f0/attachment.sig>


More information about the freebsd-python mailing list