From owner-freebsd-python@FreeBSD.ORG Wed Jun 13 18:03:28 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 5D910106564A for ; Wed, 13 Jun 2012 18:03:28 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id C8D0D8FC08 for ; Wed, 13 Jun 2012 18:03:27 +0000 (UTC) Received: by lbon10 with SMTP id n10so1813883lbo.13 for ; Wed, 13 Jun 2012 11:03:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=NEbJUlVZUxLH2EdFqYaHvNjANVbYuYbNWiTE3cQHur8=; b=ijKRLmvm6GjbG5n/+Dbcj+yKBGb5z24Q55UgQcAoM7OIGlHapbpl+fUaB3weNqGaHl tsortAFC9kinvcRQ3qfo1Bju23V0bfEW35TZpKrolzWuuWXapCJstNMc4L9sULn8Pl0V 3oWLDb8A+sesxjgNwBpJ4lXhqT3Kng6kYvH4lBZyMmcjKsBRJ2kwi5VtaV2lw5LsS1/q MWTRyNGaX5efgSrQPq9Zi+1HnpI4feog404OK5fqdlir7oLJmxGa+NSCrGTF1SYoGFsl JGuOx0AokRDQOmj11foRN+WVTX4uFXovDcLV+25QDOfzHXPwGnJAWfT3gfC2bvZg3Cya Cs9w== Received: by 10.152.108.144 with SMTP id hk16mr25232233lab.2.1339610606564; Wed, 13 Jun 2012 11:03:26 -0700 (PDT) Received: from zont-osx.local (ppp95-165-158-211.pppoe.spdop.ru. [95.165.158.211]) by mx.google.com with ESMTPS id d3sm3067528lbh.3.2012.06.13.11.03.25 (version=SSLv3 cipher=OTHER); Wed, 13 Jun 2012 11:03:26 -0700 (PDT) Message-ID: <4FD8D5EC.4000409@zonov.org> Date: Wed, 13 Jun 2012 22:03:24 +0400 From: Andrey Zonov User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: miwi@FreeBSD.org References: <201206121725.03767.jhb@freebsd.org> <20120613215312.5d238750.miwi@FreeBSD.org> In-Reply-To: <20120613215312.5d238750.miwi@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmpOnyNo3hP2on3ccQvG2BwCPN6fS2eYpKkHaxxy/gzmRuomPwXhUTYC8wB0Mx+bSNaYF1E Cc: John Baldwin , freebsd-python@freebsd.org Subject: Re: Earlier patch to always install python's eggs as unpacked files 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 18:03:28 -0000 On 6/13/12 5:53 PM, Martin Wilke wrote: > On Tue, 12 Jun 2012 17:25:03 -0400 > John Baldwin wrote: > >> There was a patch in this post from last year >> (http://lists.freebsd.org/pipermail/freebsd-python/2011-August/003701.html) >> to make python packages unpack eggs to avoid problems with shared egg >> caches and to avoid requiring Internet access during pkg_add. Andrey >> mentioned doing an exp run with his patch. I don't see the patch >> committed to bsd.python.mk or any further replies to the thread. We >> are running into some of these issues using our own packages at my >> work. Were there any problems with this patch or during it's exp run? >> > > Hi John and Andrey, > > I've add that to my todo for next exprun over the weekend. > > - Martin > Hi, There is a problem with this patch. If you build package for one FreeBSD version and install package to another, easy_install will fetch sources and will try to build an egg. I found that during upgrading from 8.2 to 9.0. My suggestion is to replace post-install/pre-deinstall actions to manually editing easy-install.pth. I mean this code: @${ECHO_CMD} "@unexec ${PYEASYINSTALL_CMD} ${PYEASYINSTALL_UNINSTALLARGS}" \ > ${TMPPLIST} @${ECHO_CMD} "@unexec ${RM} -rf ${PYTHON_SITELIBDIR}/${PYEASYINSTALL_EGG}" >> ${TMPPLIST} @${ECHO_CMD} "@exec ${SETENV} PYTHONPATH=${PYEASYINSTALL_SITELIBDIR} \ ${PYEASYINSTALL_CMD} ${PYEASYINSTALL_INSTALLARGS}" \ >> ${TMPPLIST} What do you think? PS: I don't really like this solution. -- Andrey Zonov