Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #88340

Re: Setuptools Confusion

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 <python-python-list@m.gmane.org>
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 <ben+python@benfinney.id.au>
Subject Re: Setuptools Confusion
Date Tue, 31 Mar 2015 06:03:01 +1100
References <mfc3k8$ih7$2@dont-email.me>
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 <bignose+hates-spam@benfinney.id.au>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.345.1427742188.10327.python-list@python.org> (permalink)
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

Show key headers only | View raw


Rob Gaddi <rgaddi@technologyhighland.invalid> 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
<URL:https://www.python.org/community/sigs/current/distutils-sig/>.

> 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 <URL:https://docs.python.org/3/distutils/extending.html>.

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 <URL:https://www.pypa.io/> has greatly
improved the situation in recent years, with the Python Packaging User
Guide <URL:https://packaging.python.org/> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Setuptools Confusion Rob Gaddi <rgaddi@technologyhighland.invalid> - 2015-03-30 18:11 +0000
  Re: Setuptools Confusion Ben Finney <ben+python@benfinney.id.au> - 2015-03-31 06:03 +1100

csiph-web