From owner-freebsd-python@FreeBSD.ORG Wed Jun 13 15:04:22 2012 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B8FC1065673 for ; Wed, 13 Jun 2012 15:04:22 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id A15BA8FC0A for ; Wed, 13 Jun 2012 15:04:21 +0000 (UTC) Received: by bkvi18 with SMTP id i18so691146bkv.13 for ; Wed, 13 Jun 2012 08:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=56zaXsnjokFn8S5cNXvt+/A1j3+aoVN6Qy8+23J/R/Q=; b=EjKXcYjsGDJUCbfa+NeCaxtmX0aw8t+jg3zZp9rmftEKsvQRyZJOukWangVp0B+BWN qHGH9Azh7Gk9lTzIFgreQ3+40TWwSy17hEYXWk94CNcpff1i3CB8Jw1xIHyxCa+j1LkX d1CRqSYtiCGi2mNzZsep3IpVH01vzBFZXOvRahJfCWTijL9GiLJedPUIvK0luIPtjXYx uw2zE50VBXkEVusAsrxOMdA9N/P1oRBHhpSkkrpfsO3pSZVqoWbvy2cRY0ZsatoFpwWP Zdvjx8zZ8HNtqq4FS+z+dZ1sDa/f+XhaZSHMkZrIO2B3Qyzs6ETlEzW9FfNkawxddW2y iOIw== Received: by 10.204.154.142 with SMTP id o14mr12925847bkw.116.1339599860558; Wed, 13 Jun 2012 08:04:20 -0700 (PDT) Received: from green.tandem.local (utwig.xim.bz. [91.216.237.46]) by mx.google.com with ESMTPS id gw6sm3303071bkc.16.2012.06.13.08.04.18 (version=SSLv3 cipher=OTHER); Wed, 13 Jun 2012 08:04:19 -0700 (PDT) Message-ID: <4FD8ABF1.6060607@gmail.com> Date: Wed, 13 Jun 2012 18:04:17 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120605 Firefox/12.0 SeaMonkey/2.9.1 MIME-Version: 1.0 To: freebsd-python@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: preparation on moving to py-distribute X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jun 2012 15:04:22 -0000 Hi all. I recently found Pyrseas, a piece of software that I really like to have in ports collection. It's about SQL database definitions and storing them in VCS. Anyone intrested can check http://pyrseas.readthedocs.org/en/latest/overview.html for more details. I created a port for this one (https://redports.org/browser/kworr/databases/py-Pyrseas) just to found that after installation completes port is unusable. After roaming through internet I identified py-setuptools as source of the problem/incompatibility. I also found that py-setuptools is long ago abandoned and active fork already exists named py-distribute. Trying to move to py-distribute I found that: 1. Simple 'portmaster -o devel/py-distribute devel/py-setuptools' doesn't work. If you want to move to py-distribute you need to deinstall py-setuptools with all dependencies. http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/168980 filed. 2. Even if py-distribute is installed any port would depend on py-setuptools bringing it in. py-setuptools has no conflicts for py-distribute. 3. There are ports that directly depend on py-setuptools. If noone else can start this move now I can at least plan it and provide some starting solutions. First. We need a clear way to force inner dependency on py-distribute for python 2.7. I think there would be nice adding one more temporary variable to setuptools support section: # setuptools support .if defined(USE_PYDISTUTILS) && ${USE_PYDISTUTILS} == "easy_install" -.if ${PYTHON_SUFFIX} < 30 +.if ${PYTHON_SUFFIX} < 30 && !defined (TEST_USE_PYDISTRIBUTE) BUILD_DEPENDS+= ${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-setuptools RUN_DEPENDS+= ${PYEASYINSTALL_CMD}:${PORTSDIR}/devel/py-setuptools .else This doesn't correlates with general variable naming in Mk, yet this is a oneliner, it correctly states that WIP and everything can blow up instantly and now anyone can add TEST_USE_PYDISTRIBUTE to /etc/make.conf to switch from py-setuptools. I also can provide a simple patch that fixes www/trac-graphviz when building with py-distribute: @@ -20,11 +20,9 @@ RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/URW/fonts.dir:${PORTSDIR}/x11-fonts/urwfonts \ dot:${PORTSDIR}/graphics/graphviz \ tracd:${PORTSDIR}/www/trac -BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools USE_PYTHON= 2.5+ -NO_BUILD= yes -USE_PYDISTUTILS=yes +USE_PYDISTUTILS=easy_install PYDISTUTILS_PKGNAME= graphviz WRKSRC= ${WRKDIR}/${PORTNAME}plugin PYDISTUTILS_NOEGGINFO= yes @@ -39,7 +37,4 @@ -e 's|%%OSMAJOR%%|${OSREL:C/\..*$//}|' \ ${WRKSRC}/graphviz/graphviz.py -do-build: - @${DO_NADA} - .include c'mon guys, lets not make this a year-or-two patch like the issue with not installing egg files. I no I can be wrong so punch me someone. I just want to make an easy first step that doesn't break anything but make all further steps a bit easier. :) -- Sphinx of black quartz judge my vow.