Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'modules.': 0.07; 'python': 0.08; 'subject:distutils': 0.09; 'c++': 0.12; 'wrote:': 0.15; 'library': 0.15; 'cpp': 0.16; 'distutils': 0.16; 'embed': 0.16; 'included.': 0.16; 'makefile': 0.16; 'module?': 0.16; 'received:192.168.1.40': 0.16; 'subject:app': 0.16; 'url:pastebin': 0.16; 'seems': 0.20; 'extension': 0.22; 'header :In-Reply-To:1': 0.22; 'libraries': 0.25; 'skip:b 20': 0.26; "i'm": 0.27; 'fairly': 0.30; 'rather': 0.33; 'to:addr:python- list': 0.34; 'header:User-Agent:1': 0.34; 'do?': 0.35; 'url:python': 0.37; 'but': 0.37; 'using': 0.37; 'received:192': 0.38; 'url:org': 0.38; 'subject:: ': 0.38; 'case': 0.39; 'received:192.168.1': 0.39; 'url:docs': 0.39; 'subject:with': 0.39; 'to:addr:python.org': 0.39; 'extend': 0.40; "i'd": 0.40; 'your': 0.60; 'link': 0.63; 'received:62': 0.67; 'intuitive': 0.67; 'from:addr:t': 0.84; 'seams': 0.84 Date: Fri, 22 Jul 2011 16:29:06 +0200 From: Thomas Jollans User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: compiling qt app extensions with distutils References: <562586f4-d1cd-4bce-af50-fefdbb2ef0f9@h7g2000prf.googlegroups.com> In-Reply-To: <562586f4-d1cd-4bce-af50-fefdbb2ef0f9@h7g2000prf.googlegroups.com> X-Enigmail-Version: 1.1.2 OpenPGP: id=5C8691ED Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1311344946 news.xs4all.nl 23978 [2001:888:2000:d::a6]:59246 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:10108 On 22/07/11 15:43, strattonbrazil wrote: > I'd like to extend my C++ Qt applicaition using distutils. Looking > over the tutorial docs (http://docs.python.org/extending/ > building.html#building), it seems fairly intuitive for simple > examples, but I'm already using a rather complex qmake/Makefile system > to get all my cpp files and libraries included. Is it possible to > take advantage of the existing makefile (http://pastebin.com/ > Ln3NCkNL)? What do you want to do? Distutils is used to build extension modules. Do you want to turn your application into a Python module? It seams more likely that you want to embed Python in your application, in which case you're looking at altogether the wrong documentation and you simply have to link with libpythonX.Y like any other library