From owner-freebsd-python@FreeBSD.ORG Sat Sep 21 09:27:20 2013 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6C02DFDB; Sat, 21 Sep 2013 09:27:20 +0000 (UTC) (envelope-from mva@FreeBSD.org) Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de [80.67.31.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 2B52923C6; Sat, 21 Sep 2013 09:27:19 +0000 (UTC) Received: from [89.183.7.33] (helo=localhost) by smtprelay02.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1VNJT5-0001jz-6t; Sat, 21 Sep 2013 11:27:11 +0200 Date: Sat, 21 Sep 2013 11:27:10 +0200 From: Marcus von Appen To: freebsd-python@freebsd.org, freebsd-ports@freebsd.org Subject: [HEADS UP] Improved python package support ahead Message-ID: <20130921092710.GA1373@medusa.sysfault.org> Mail-Followup-To: freebsd-python@freebsd.org, freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Df-Sender: MTEyNTc0Mg== X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Marcus von Appen List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Sep 2013 09:27:20 -0000 --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--