From owner-freebsd-python@FreeBSD.ORG Wed Feb 6 01:07:02 2013 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 57E38B9F for ; Wed, 6 Feb 2013 01:07:02 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id 05907244 for ; Wed, 6 Feb 2013 01:07:01 +0000 (UTC) Received: from mr17.lnh.mail.rcn.net ([207.172.157.37]) by smtp02.lnh.mail.rcn.net with ESMTP; 05 Feb 2013 20:07:02 -0500 Received: from smtp04.lnh.mail.rcn.net (smtp04.lnh.mail.rcn.net [207.172.157.104]) by mr17.lnh.mail.rcn.net (MOS 4.3.4-GA) with ESMTP id BXO67850; Tue, 5 Feb 2013 20:07:00 -0500 X-Auth-ID: anat Received: from 209-6-63-29.c3-0.sbo-ubr1.sbo.ma.cable.rcn.com (HELO utka.zajac) ([209.6.63.29]) by smtp04.lnh.mail.rcn.net with ESMTP; 05 Feb 2013 20:07:00 -0500 Message-ID: <5111ACB4.5050506@aldan.algebra.com> Date: Tue, 05 Feb 2013 20:07:00 -0500 From: "Mikhail T." User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: python@FreeBSD.org Subject: Question about a new Python port Content-Type: multipart/mixed; boundary="------------010604030403020008070200" X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2013 01:07:02 -0000 This is a multi-part message in MIME format. --------------010604030403020008070200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello! Attached is a shar for a new port -- of the bencode-module . Everything is fairly straightforward about it, except: 1. Just like devel/py-setuptools is creates/updates the site-packages/easy-install.pth. However, using the same method of cleaning up the file as the setuptools will not work, when more than one port updates the file. The .dist extension for the backed-up version should, probably, be replaced by a port-specific one -- so that each port creates its own backup. Or am I misreading it? 2. The new port also drops an egg -- without even the egg-info file -- maybe, all such ports should be forced (by bsd.python.mk) to properly unzip and install the contents? Instead of unzipping at run-time every time? It works either way, I'm sure, but it seems to me, the .egg concept was created for the benefit of people, who do not use anything like the Ports system. Thanks for the feedback. Yours, -mi --------------010604030403020008070200 Content-Type: text/plain; charset=KOI8-U; name="py-bencode.shar" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="py-bencode.shar" # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-bencode # py-bencode/Makefile # py-bencode/distinfo # py-bencode/pkg-descr # echo c - py-bencode mkdir -p py-bencode > /dev/null 2>&1 echo x - py-bencode/Makefile sed 's/^X//' >py-bencode/Makefile << '8e9e08c27483a0042d47ca86ecca9e56' X# Created by: Mikhail Teterin X# $FreeBSD$ X XPORTNAME= bencode XPORTVERSION= 1.0 XCATEGORIES= devel python XMASTER_SITES= ${MASTER_SITE_CHEESESHOP} XMASTER_SITE_SUBDIR=source/${PORTNAME:C/(.).*/\1/}/${PORTNAME} XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} X XMAINTAINER= mi@aldan.algebra.com XCOMMENT= Standalone implementation of BitTorrent's encoding/decoding X XUSE_PYTHON= 2.5+ XUSE_PYDISTUTILS= yes XPYDISTUTILS_NOEGGINFO= yes XPLIST_FILES= %%PYTHON_SITELIBDIR%%/${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg X X.include 8e9e08c27483a0042d47ca86ecca9e56 echo x - py-bencode/distinfo sed 's/^X//' >py-bencode/distinfo << 'bf094c3eb541cf2d243da8ee22ffe064' XSHA256 (bencode-1.0.tar.gz) = 0301c2202233a3f274c940702bac7bd02d5d053b8bf9502b085156270e30be9b XSIZE (bencode-1.0.tar.gz) = 2385 bf094c3eb541cf2d243da8ee22ffe064 echo x - py-bencode/pkg-descr sed 's/^X//' >py-bencode/pkg-descr << '10e1a7f0605ca4b1e8dc0bdcb59c21bb' XThe BitTorrent bencode module as light-weight, standalone package. X XThis package simply re-packages the existing bencoding and bdecoding Ximplemention from the 'official' BitTorrent client as a separate, Xleight-weight package for re-using them without having the entire XBitTorrent software as a dependency. X XWWW: http://pypi.python.org/pypi/bencode/ 10e1a7f0605ca4b1e8dc0bdcb59c21bb exit --------------010604030403020008070200--