[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / 85 / 126a5114288fa39f2a27465ed9efa7df11dc92
1 Return-Path: <bremner@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 5C929429E39\r
6         for <notmuch@notmuchmail.org>; Sun, 19 Jun 2011 12:54:17 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id HMa8N1JxV1wz for <notmuch@notmuchmail.org>;\r
16         Sun, 19 Jun 2011 12:54:16 -0700 (PDT)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 948A1429E31\r
21         for <notmuch@notmuchmail.org>; Sun, 19 Jun 2011 12:54:15 -0700 (PDT)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc30w-142167176081.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [142.167.176.81]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id p5JJsBWt024288\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sun, 19 Jun 2011 16:54:12 -0300\r
28 Received: from bremner by zancas.localnet with local (Exim 4.76)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1QYO4R-00074y-HZ; Sun, 19 Jun 2011 16:54:11 -0300\r
31 From: david@tethera.net\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH 2/2] Do not import notmuch in setup.py.\r
34 Date: Sun, 19 Jun 2011 16:53:43 -0300\r
35 Message-Id: <1308513223-27163-3-git-send-email-david@tethera.net>\r
36 X-Mailer: git-send-email 1.7.5.3\r
37 In-Reply-To: <1308513223-27163-1-git-send-email-david@tethera.net>\r
38 References: <1308507380-26896-1-git-send-email-david@tethera.net>\r
39         <1308513223-27163-1-git-send-email-david@tethera.net>\r
40 Cc: David Bremner <bremner@debian.org>\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Sun, 19 Jun 2011 19:54:17 -0000\r
54 \r
55 From: David Bremner <bremner@debian.org>\r
56 \r
57 Importing notmuch loads the notmuch shared library. When building\r
58 without a system install of notmuch, this requires e.g. setting\r
59 LD_LIBRARY_PATH for building and fails completely for cleaning.\r
60 ---\r
61  bindings/python/setup.py |   17 ++++++++++++++++-\r
62  1 files changed, 16 insertions(+), 1 deletions(-)\r
63 \r
64 diff --git a/bindings/python/setup.py b/bindings/python/setup.py\r
65 index e4a3a25..1497bc4 100644\r
66 --- a/bindings/python/setup.py\r
67 +++ b/bindings/python/setup.py\r
68 @@ -1,7 +1,22 @@\r
69  #!/usr/bin/env python\r
70  \r
71 +import os\r
72 +import re\r
73  from distutils.core import setup\r
74 -from notmuch import __VERSION__\r
75 +\r
76 +def get_version():\r
77 +    file = open('notmuch/__init__.py')\r
78 +    try:\r
79 +        for line in file:\r
80 +            if re.match('__VERSION__\s*=\s*',line) != None:\r
81 +                version = line.split('=', 1)[1]\r
82 +                return eval(version, {}, {})\r
83 +    finally:\r
84 +        file.close()\r
85 +    raise IOError('Unexpected end-of-file')\r
86 +\r
87 +__VERSION__=get_version()\r
88 +\r
89  setup(name='notmuch',\r
90        version=__VERSION__,\r
91        description='Python binding of the notmuch mail search and indexing library.',\r
92 -- \r
93 1.7.5.3\r
94 \r