Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.075 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'subject:Python': 0.06; 'binary': 0.07; 'python': 0.11; 'jan': 0.12; '10:00': 0.16; '23,': 0.16; 'circumvent': 0.16; 'extension.': 0.16; 'subject:library': 0.16; 'wrote:': 0.18; 'mechanism': 0.19; 'thu,': 0.19; 'seems': 0.21; 'install': 0.23; 'load': 0.23; 'header:User-Agent:1': 0.23; 'extension': 0.26; 'pass': 0.26; 'gets': 0.27; 'header:In-Reply- To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'along': 0.30; 'loading': 0.31; 'relies': 0.31; 'another': 0.32; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'library.': 0.36; "i'll": 0.36; 'possible': 0.36; 'christian': 0.38; 'system,': 0.38; 'thank': 0.38; 'depends': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'even': 0.60; 'problems.': 0.60; 'solve': 0.60; 'then,': 0.60; 'simply': 0.61; 'save': 0.62; 'different': 0.65; 'license': 0.66; 'person.': 0.69; 'computers.': 0.84; 'grabbing': 0.84; 'subject:Using': 0.84; 'tie': 0.84; 'trouble.': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:newsgroups:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=nZzPEJuaG87vam5N8IaJzn+qGo/xRhQgzdsimbEH6ZY=; b=TFsHqRaFtw9aJzmcNl0hyb8TcKYj6nyMpDPKa7UE0uByEPR9C3u5qmAnJK6xfM52Iu b7rxrN6zNSGuuj0kjBsr4Q1hwo5pUbjJ4IHCfG7YCV3ovCzoneqB/PCfvVVWr4wSCoqW xNpY4tQsGHkH190WsLEiBfWtb+ehlMfdA4oYwSSZm/NhCmvpPOm/p5z4HTNFTUlwS53l SVga02UwSYgdZmVXd3l+Kzvk/w2HxT6vj5kKHNxw64e3/ZnlEoTRZ340aJR0yTnITkon rqacLG6giRCz8FYVT2v/YYiK3uiNT+9Veqry40D6OfX05yFcB9aacNUpYPu/nqxFYTLT U9BA== X-Received: by 10.180.13.139 with SMTP id h11mr6674044wic.3.1390462864889; Wed, 22 Jan 2014 23:41:04 -0800 (PST) Date: Thu, 23 Jan 2014 08:41:03 +0100 From: lgabiot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 Newsgroups: comp.lang.python To: python-list@python.org Subject: Re: Using a static library in a C extension for Python References: <52dfa51e$0$3621$426a74cc@news.free.fr> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390462872 news.xs4all.nl 2861 [2001:888:2000:d::a6]:53562 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64579 Le 23/01/14 03:33, Chris Angelico a écrit : > On Thu, Jan 23, 2014 at 10:00 AM, Christian Gollwitzer wrote: >> There might be another issue with the license of the library. Cairo is both >> LGPL and MPL. For LGPL, only dynamic linking is without doubt, for MPL it >> seems to be accepted to link statically. It all depends on whether you plan >> to pass on the binary to another person. >> To circumvent this problem, it might be feasable to just install libcairo >> along with you extension. >> >> Then, the exact same version of python must be used on both computers. Since >> the extension loading mechanism completely relies on the OS dynamic linker, >> it is not possible to load an extension into a different version of python >> than it was built for. > > If you can tie in with your OS's package manager, that would solve all > of these problems. You get the OS-supplied Pythom and the OS-supplied > libcairo; grabbing libcairo-dev (or, on my Debian system, > libcairo2-dev to go with libcairo2) gets you what you need to build > your extension; you then might even package your extension the same > way, and then simply declare dependencies. Can save a HUGE amount of > trouble. > > ChrisA > thank you very much for your answer, I'll work on your informations.