Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jun 2020 17:12:40 -0600
From:      Gary Aitken <freebsd@dreamchaser.org>
To:        Tim Daneliuk <tundra@tundraware.com>, FreeBSD Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: Migrating To Python 3.x
Message-ID:  <1f495234-6e58-db90-943f-5b5935e24f4f@dreamchaser.org>
In-Reply-To: <04c4ee18-daa2-aebc-882c-29407a58a160@tundraware.com>
References:  <02676140-06dd-a947-b7b4-0f6ccbeaf773@tundraware.com> <cdbae924-82d3-6d37-db4e-c9ed2ef9b1ab@kicp.uchicago.edu> <bfbe75c7-d53b-7a42-a4b9-36ad1585a39f@tundraware.com> <0b794721-3548-0882-58ff-7eedd54fe645@tundraware.com> <04c4ee18-daa2-aebc-882c-29407a58a160@tundraware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6/1/20 9:52 PM, Tim Daneliuk wrote:

> Has anyone every managed to get py2 and py3 to coexist happily on
> FreeBSD including their respective pips and setuptools?

I seem I have them coexisting on an 11.3 system.  At least they are
both installed, although I haven't paid a lot of attention as to what
is using what.  They were installed from packages, not built from
ports.

~$ pkg info -r python27
python27-2.7.17_1:
         py27-pytest-runner-2.11.1
         py27-setuptools_scm-3.1.0
         py27-snowballstemmer-1.2.0_1
         py27-pystemmer-1.3.0_2
         py27-cython-0.29
         py27-alabaster-0.7.6
         py27-sphinx_rtd_theme-0.4.3
         py27-pygments-2.3.0
         py27-sphinxcontrib-websupport-1.1.0
         py27-docutils-0.14_3
         py27-Jinja2-2.10
         py27-Babel-2.6.0
         py27-MarkupSafe-1.1.1
         google-cloud-sdk-272.0.0
         py27-sqlite3-2.7.17_7
         vtk6-6.2.0_10
         py27-matplotlib-2.2.4_1
         py27-backports.functools_lru_cache-1.5
         py27-cycler-0.10.0
         py27-dateutil-2.8.0
         py27-pyparsing-2.4.6
         py27-pytz-2019.3,1
         py27-kiwisolver-1.1.0
         py27-numpy-1.16.5_2,1
         py27-tornado-5.1.1
         py27-tkinter-2.7.17_6
         py27-backports-1
         py27-backports_abc-0.5
         py27-futures-3.3.0
         py27-singledispatch-3.4.0.3_1
         py27-six-1.12.0
         hugin-2019.0.0_4
         vigra-1.11.1_6
         py27-gimp-2.10.14
         en-gimp-help-html-2.8.2_1
         py27-gtk2-2.24.0_5
         libglade2-2.6.4_9
         py27-gobject-2.28.6_8
         py27-cairo-1.18.1_1
         py27-setuptools-41.4.0_1
$ pkg info -r python37
python37-3.7.6:
         gcc-arm-embedded-9.2.20191106_2
         libftdi-0.20_16
         libftdi1-1.4_15
         libfsntfs-e.20191221
         libfwnt-20191222
         openshot-2.4.4.443
         py37-qt5-svg-5.13.1
         libopenshot-0.2.3.490
         py37-pyzmq-18.1.1
         py37-qt5-webkitwidgets-5.13.1
         py37-requests-2.22.0
         py37-qt5-printsupport-5.13.1
         py37-qt5-webkit-5.13.1
         py37-urllib3-1.25.6,1
         py37-chardet-3.0.4_3
         py37-qt5-network-5.13.1
         py37-idna-2.8
         py37-pysocks-1.7.1
         py37-openssl-19.0.0
         py37-certifi-2019.11.28
         py37-cryptography-2.6.1
         py37-asn1crypto-0.24.0
         py37-cffi-1.13.2
         py37-pycparser-2.19
         FreeCAD-0.18.4_1
         opencascade-7.4.0_1
         libarea-20160313_13
         py37-pyside2-5.13.2_1
         py37-pivy-devel-0.6.4_1
         py37-matplotlib-2.2.4_1
         py37-boost-libs-1.72.0
         py37-shiboken2-5.13.2
         py37-cycler-0.10.0
         py37-dateutil-2.8.0
         py37-pyparsing-2.4.6
         py37-pytz-2019.3,1
         py37-kiwisolver-1.1.0
         py37-numpy-1.16.5_2,1
         py37-tornado-5.1.1
         llvm90-9.0.0_2
         gstreamer1-plugins-a52dec-1.14.4
         gstreamer1-plugins-mpg123-1.14.4
         gstreamer1-plugins-vorbis-1.14.4
         gstreamer1-plugins-png-1.14.4
         gstreamer1-plugins-dts-1.14.4
         gstreamer1-plugins-dvdread-1.14.4_1
         gstreamer1-plugins-resindvd-1.14.4_1
         gstreamer1-plugins-theora-1.14.4
         gstreamer1-plugins-pango-1.14.4
         gstreamer1-plugins-ogg-1.14.4
         gstreamer1-plugins-good-1.14.4
         gstreamer1-plugins-ugly-1.14.4
         git-2.24.1
         gconf2-3.2.6_5
         gstreamer1-plugins-gl-1.14.4_2
         gstreamer1-plugins-bad-1.14.4
         graphene-1.10.0
         py37-gobject3-3.28.3
         py37-cairo-1.18.1_1
         hplip-3.19.12
         py37-qt5-dbussupport-5.13.1
         py37-pillow-6.2.2
         py37-qt5-widgets-5.13.1
         py37-dbus-1.2.14
         py37-olefile-0.46
         py37-tkinter-3.7.6_6
         py37-qt5-gui-5.13.1
         py37-qt5-core-5.13.1
         py37-sip-4.19.19_1,1
         bind-tools-9.14.9
         py37-ply-3.11
         libinput-1.12.6_1
         py37-evdev-0.8.1_1
         py37-pyudev-0.21.0
         py37-six-1.12.0
         py37-setuptools-41.4.0_1
         lensfun-0.3.2_2
         libreoffice-6.3.4
         gstreamer1-plugins-1.14.4_2
         gstreamer1-1.14.4
         gtk2-2.24.32
         gobject-introspection-1.56.1,1
         glib-2.56.3_7,1
         llvm80-8.0.1_3

However, recent attempts to build a development version of FreeCAD
using python37 is failing because of a conflict; haven't had time to
look into it:

root@breakaway:/usr/ports/cad/freecad-devel # make
===>   FreeCAD-8.d821.f5.f depends on file: /usr/local/bin/cmake - not found
===>   cmake-3.13.4 depends on executable: sphinx-build - not found
===>  Staging for py27-sphinx-1.6.5_1,1
...
===>  Staging for py27-requests-2.21.0
===>   py27-requests-2.21.0 depends on package: py27-chardet>=3.0.2 - not found
===>  Installing for py27-chardet-3.0.4
===>  Checking if py27-chardet is already installed
===>   Registering installation for py27-chardet-3.0.4 as automatic
Installing py27-chardet-3.0.4...
pkg-static: py27-chardet-3.0.4 conflicts with py37-chardet-3.0.4_3 (installs files into the same place).  Problematic file: /usr/local/bin/chardetect

so I guess the answer is not flawlessly, at least not yet :-(

gimp seems to be the one thing using python27. I know I use python
in my use of gimp as I have a couple of plug-ins written.

Gary



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1f495234-6e58-db90-943f-5b5935e24f4f>