OpenBSD Journal

Heads up! System python changed to 2.7

Contributed by weerd on from the snakes-in-the-tree dept.

Remi Pointel (rpointel@) has changed the default Python version from 2.6 to 2.7:

Module name:	ports
Changes by:	2011/06/08 11:28:14

Modified files:
	lang/python    : 

Log message:
Switch default to python 2.7.
Discussed and ok from many. Bumps will follow.
"go go go" from jasper@.

Please read on for Remi's announcement to the ports@ mailinglist.


As you may have noticed the default python version has changed
to 2.7. Please note:

- if you have currently installed ports that use python, you will
need to upgrade them before installing new ports using python.
if you have a mixture of old+new you will have problems finding

The simplest way to handle this is to use package snapshots
and make sure you run pkg_add -ui before adding anything new.
If a snapshot contains scapy-2.1.0p0.tgz then it was built
with python 2.7.


- if you have created a symlink from /usr/local/bin/python to
python2.6, you will almost certainly want to switch it to
python2.7, again in order that libraries can be found.
(packages should always explicitly use the path to the version
of python they were built against; this symlink is a convenience
some of you might use for things outside of packages).

- test! test! test!

several of us have been running with 2.7 as the default python
version for a long time and have experienced no problems, but
we can't test everything. unlike the switch from 2.5 to 2.6
we don't really expect any incompatibility, but if you rely
on something that uses python, then please upgrade when
possible and check for problems.

Thanks to all people who worked with me on this version.

As always, users are invited to test and to report any bug they find on the ports@ mailing list. We'd like to thank Remi and the other porters involved in this change for their work.

(Comments are closed)

  1. By Anonymous Coward (vexler) on

    It would have been hilarious if Jasper's message had been: "Go, go, Gadget - PYTHON!!!"

    Well done and thanks!


Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]