From owner-freebsd-python@FreeBSD.ORG Wed Sep 22 18:06:29 2010 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DED58106566C for ; Wed, 22 Sep 2010 18:06:29 +0000 (UTC) (envelope-from zookog@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 931878FC1D for ; Wed, 22 Sep 2010 18:06:29 +0000 (UTC) Received: by qyk31 with SMTP id 31so6200195qyk.13 for ; Wed, 22 Sep 2010 11:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=1tl29SEh9RrL/1yT4YG/tmKBsJIco4xPdtZ/MDEXphE=; b=oY/j1tzZY61TIFjbSDvi8Z5V1nvVo6ikVS+wstf8hZuJaXkt7uiU7TyVAO97G0Bbp+ i2w7p9tg9Dq27xoXQX/YsHXNWFW2x9UIMsptbQz6llIw69SFJuRuYM/Co6TlXyH6VQ8n LY3gtirCIDmgSQkuixQUUpuiW++nRWX6LD/t0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; b=EOfdH9IRQl0UpCt3LDx/FKbFwn5lvwOa6BECfwtS+ADOtSDxvOkr1OPgk78wP+LaO+ Ahwqdds1F7chNB4tXdH8f2KgCx89TVYhENNDNHOD22j5OOp7qiMe+H+lyDR5Gmzh4T08 1eQgbQ0ldGza1XoEc7SsLOcWexsh9N7tnZ4ZI= MIME-Version: 1.0 Received: by 10.229.185.145 with SMTP id co17mr379207qcb.108.1285177039445; Wed, 22 Sep 2010 10:37:19 -0700 (PDT) Sender: zookog@gmail.com Received: by 10.229.32.133 with HTTP; Wed, 22 Sep 2010 10:37:19 -0700 (PDT) Date: Wed, 22 Sep 2010 11:37:19 -0600 X-Google-Sender-Auth: hRB71-DkxJ05ZcnsRqdv-f_xy10 Message-ID: From: "Zooko O'Whielacronx" To: python@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: exarkun@twistedmatrix.com, Brian Warner , Glyph Lefkowitz , David-Sarah Hopwood , Randy Bush , kevan@isnotajoke.com, ruben Subject: dear python@freebsd.org: please include a .egg-info for py-twisted 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, 22 Sep 2010 18:06:29 -0000 Dear python@freebsd.org folks: I contribute to some open source software written in Python (http://tahoe-lafs.org ) and we rely on the standard Python metadata=E2=80=94which is named ".egg-info" for legacy reasons even though = it doesn't have anything to do with Python Eggs=E2=80=94to detect whether othe= r Python packages are installed. This works for all packages on FreeBSD since the standard Python distutils build the appropriate .egg-info files automatically and the FreeBSD packagers correctly include those files, but it doesn't work for Twisted. That's because a few years ago the Twisted folks split Twisted into several separate packages, like "Twisted-Core", "Twisted-Web", "Twisted-Words" and so on. After a couple of released the Twisted folks decided this was more trouble than it was worth and went back to distributing a monolithic "Twisted" package, but for some reason all of the operating system distributions have continued to maintain the split-out packages. Anyway, the problem is that the py-twisted metapackage that depends on all the other split-out packages doesn't produce a "Twisted-$VERSION.egg-info" file, so therefore when our code asks "Is Twisted installed?" the answer appears to be no, since there is no "Twisted-$VERSION.egg-info" file present. Here is the issue ticket from when Debian had a similar problem which shows you how they solved it: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D477384 Here is the issue ticket from Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=3D523210 To fix this issue, make it so that when the py-twisted package is installed, then there exists a file named "Twisted-$TWISTEDVERSION-py$PYTHONVERSION.egg-info" on the sys.path. Thanks! Regards, Zooko Wilcox-O'Hearn