Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2013 11:27:10 +0200
From:      Marcus von Appen <mva@FreeBSD.org>
To:        freebsd-python@freebsd.org, freebsd-ports@freebsd.org
Subject:   [HEADS UP] Improved python package support ahead
Message-ID:  <20130921092710.GA1373@medusa.sysfault.org>

next in thread | raw e-mail | index | archive | help

--IS0zKkzwUGydFO0o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Two new port Makefile knobs are to be committed to the ports tree in a
couple of days or few weeks.

PYDISTUTILS_AUTOPLIST

This knob will enable the creation of an automatic package list similar
to the linux rpm ports and rubygems. It will work for the majority
packages that do not install files outside of the site-packages and
include directories for python. Ports installing e.g. binaries
might need some additional care, since there is a small regression for
directories within BSD.local.dist.
The knob supports the traditional distutils as well as easy_install on
all currently supported python versions.
You can mix contents of an existing pkg-plist (e.g. if the port installs
additional documentation) with the automatic results.

PYTHON_PY3K_PLIST_HACK

Several ports currently install python scripts without using the typical
python way of doing things (e.g. devel/glib20), but which are
byte-compiled. To enable proper support for python 3.2+ within the
package lists, this knob will replace the contents of the existing
pkg-plist (e.g. share/port/foo.pyc, share/port/foo.pyo) with the proper
values. It's based on the plist include hack existing in
devel/py-virtualenv, which is currently used by various ports.

Both knobs will improve the situation for python packages to be built
for Python 3.x as default version. This will not solve all problems at
an instant, but reduces the wrong plist entries being created, if you
use python3.x as DEFAULT_PYTHON_VERSION.

The patch itself can be retrieved from
http://people.freebsd.org/~mva/python_mod_plist.diff

Cheers
Marcus

--IS0zKkzwUGydFO0o
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.21 (FreeBSD)

iEYEARECAAYFAlI9Zm4ACgkQi68/ErJnpkfQNACeI2mqM0k2xkcO1iqqKThFauBb
2W8AoLWndcSq6X3zZnCBfAIu8qvmCKIU
=484c
-----END PGP SIGNATURE-----

--IS0zKkzwUGydFO0o--



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