Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.061 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'distutils': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'works.': 0.09; 'python': 0.11; '8bit%:26': 0.16; ':-(': 0.16; 'finney': 0.16; 'missing?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'setuptools': 0.16; 'appropriate': 0.16; 'discussion': 0.18; 'trying': 0.19; 'header :User-Agent:1': 0.23; 'specify': 0.24; 'asking': 0.27; 'header:X -Complaints-To:1': 0.27; 'topic': 0.29; "i'm": 0.30; 'trivial': 0.31; 'writes:': 0.31; 'extend': 0.32; 'url:python': 0.33; 'packaging': 0.33; 'classes': 0.35; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; "i'll": 0.36; 'url:org': 0.36; 'two': 0.37; 'ben': 0.38; 'tasks': 0.38; 'to:addr:python- list': 0.38; 'that,': 0.38; 'recent': 0.39; 'bad': 0.39; 'though,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'authority': 0.60; 'improved': 0.60; 'ago,': 0.61; 'forum': 0.61; 'url:3': 0.61; 'advanced': 0.63; 'more': 0.64; 'situation': 0.65; 'worth': 0.66; 'news': 0.67; 'glad': 0.83; 'commands.': 0.84; 'describes': 0.84; 'face,': 0.84; 'received:125': 0.84; 'short,': 0.84; 'url:distutils-sig': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ben Finney Subject: Re: Setuptools Confusion Date: Tue, 31 Mar 2015 06:03:01 +1100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Gmane-NNTP-Posting-Host: jigong.madmonks.org X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:DOxejKDhmS+1NslegVrbZHnlmiA= X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1427742188 news.xs4all.nl 2892 [2001:888:2000:d::a6]:57444 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:88340 Rob Gaddi writes: > I'm having two issues trying to make setuptools do what I want to package > up an application. Those questions are on-topic here. It's worth noting, though, that you may get better discussion of this by asking in the Distutils forum . > I feel like both my questions come down to the same root; how do I hook > setuptools to do additional tasks at appropriate times? In short, you need to extend the ‘distutils.command’ classes and specify your custom classes as commands. The Distutils documentation describes this . Note, though, that this is an advanced topic and not to be undertaken lightly; it isn't very well understood. > Is it really as complicated as all this, or is there something trivial > and stupid that I'm just missing? It's more complicated than you thought :-( The Python Packaging Authority has greatly improved the situation in recent years, with the Python Packaging User Guide among other works. The bad news is that, though better than ten years ago, Python package distribution is still surprisingly baroque and difficult to navigate. -- \ “I never forget a face, but in your case I'll be glad to make | `\ an exception.” —Groucho Marx | _o__) | Ben Finney