Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 May 2011 12:55:28 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Re: FreeBSD Python version
Message-ID:  <4DDCEE30.2070206@infracaninophile.co.uk>
In-Reply-To: <FDAB8E888E724276AC9C53637D3FCA54@IceBlueHost>
References:  <FDAB8E888E724276AC9C53637D3FCA54@IceBlueHost>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigC470E2577887B9BBCA4CE913
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 25/05/2011 05:58, Patrick Brookings wrote:

> Can you please tell me what standard version of Python comes with
> the latest FreeBSD?
> And also, is it possible to upgrade to a newer version without
> breaking other functionalities?

python doesn't come as standard with FreeBSD.  It's an add-on you'ld
install from the ports.  The base system doesn't need python -- just
about everything is written in some combination of shell or C/C++ or make=
=2E

Upgrade to a newer version of python or a newer version of FreeBSD?  I
believe the answer is yes in both cases, but really it depends on the
delta in version numbers and whether your particular application
requires any specific features affected by the upgrade.

> I am asking because more and more scripts require at least Python
> 2.5, whereas CentOS for example only comes with 2.4.3, and it's
> pretty much impossible to upgrade the system Python without breaking
> yum and things like that.

The following versions are available in ports:

lucid-nonsense:/usr/ports/lang:% ls -lad python??
drwxr-xr-x  3 root  wheel  8 Jul 20  2010 python24/
drwxr-xr-x  3 root  wheel  8 Mar  5 07:56 python25/
drwxr-xr-x  3 root  wheel  7 Mar  8 06:12 python26/
drwxr-xr-x  3 root  wheel  7 Mar 26 09:45 python27/
drwxr-xr-x  3 root  wheel  8 Mar  5 07:56 python31/
drwxr-xr-x  3 root  wheel  8 Mar  5 07:56 python32/

or there's the lang/python port which is a meta-port that gets you the
default version, currently python-2.7

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enigC470E2577887B9BBCA4CE913
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3c7jcACgkQ8Mjk52CukIw5AACfXkWbrxAdj8gqsd6S6RzYYFCr
XfgAn3IqYbWsFy/bsSWPepu/yedM+RVs
=0Pm3
-----END PGP SIGNATURE-----

--------------enigC470E2577887B9BBCA4CE913--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4DDCEE30.2070206>