Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2013 11:47:28 GMT
From:      Ruslan Makhmatkhanov <rm@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176142: [exp-run] replace devel/py-setuptools with devel/py-distribute
Message-ID:  <201302141147.r1EBlSdb069601@red.freebsd.org>
Resent-Message-ID: <201302141150.r1EBo0Zr012771@freefall.freebsd.org>

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

>Number:         176142
>Category:       ports
>Synopsis:       [exp-run] replace devel/py-setuptools with devel/py-distribute
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 14 11:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Ruslan Makhmatkhanov
>Release:        10.0-CURRENT
>Organization:
>Environment:
10.0-CURRENT amd64
>Description:
This patch replacing devel/py-setuptools with devel/py-distribute when dependency invoked via USE_DISTUTILS=easy_install. This affects many of the python ports, so this definitely needs an exp-run. I did some local "exp-run" by succeffully building www/plone with this change from scratch ). There were reports from other committers on python@ that they live with this change, done manualy, for some time w/o problems and in fact this change was requested by many.

Two main points of this change:
1. Switch to supported package manager for python packages, because py-setuptools development is dead for a long time.
2. Use one tool both for python2 installations and python3 installations (right now we use setuptools for python2 ports and distribute for python3). Since distribute is a drop-in replacement, no problems are expected with this.

It would be great to make the switch before the any slushes/freezes. 
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: net-mgmt/net-snmp/Makefile
===================================================================
--- net-mgmt/net-snmp/Makefile	(revision 312154)
+++ net-mgmt/net-snmp/Makefile	(working copy)
@@ -67,8 +67,8 @@
 				-s ${PYEASYINSTALL_BINDIR} \
 				${PYDISTUTILS_PKGNAME}
 USE_PYTHON=	yes
-RUN_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
-BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
+RUN_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-distribute
+BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-distribute
 CONFIGURE_ARGS+=--with-python-modules
 PLIST_SUB+=	WITH_PYTHON="" PYTHON_VER=${PYTHON_VER}
 PLIST_SUB+=	PYDISTUTILS_PKGVERSION=${PYDISTUTILS_PKGVERSION}
Index: devel/trac-bitten/Makefile
===================================================================
--- devel/trac-bitten/Makefile	(revision 312154)
+++ devel/trac-bitten/Makefile	(working copy)
@@ -7,7 +7,7 @@
 
 PORTNAME=	bitten
 PORTVERSION=	0.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel www python
 MASTER_SITES=	http://ftp.edgewall.com/pub/bitten/ \
 		LOCAL/glarkin
@@ -29,7 +29,7 @@
 OPTIONS=	BITTEN_MASTER "Build bitten master" ON
 .include <bsd.port.options.mk>
 
-BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-setuptools
+BUILD_DEPENDS+=	easy_install:${PORTSDIR}/devel/py-distribute
 .if defined(WITH_BITTEN_MASTER)
 RUN_DEPENDS+=	tracd:${PORTSDIR}/www/trac
 .endif
Index: Mk/bsd.python.mk
===================================================================
--- Mk/bsd.python.mk	(revision 312154)
+++ Mk/bsd.python.mk	(working copy)
@@ -460,13 +460,8 @@
 
 # setuptools support
 .if defined(USE_PYDISTUTILS) && ${USE_PYDISTUTILS} == "easy_install"
-.if ${PYTHON_SUFFIX} < 30
-BUILD_DEPENDS+=		${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
-RUN_DEPENDS+=		${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-setuptools
-.else
 BUILD_DEPENDS+=		${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-distribute
 RUN_DEPENDS+=		${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-distribute
-.endif
 
 PYDISTUTILS_BUILD_TARGET?=		bdist_egg
 PYDISTUTILS_INSTALL_TARGET?=	easy_install


>Release-Note:
>Audit-Trail:
>Unformatted:



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