Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Piotr =?utf-8?Q?O=C5=BCarowski?= Newsgroups: linux.debian.maint.python Subject: Re: Application libraries private, Distutils metadata available for console scripts and introspection Date: Fri, 27 Nov 2015 00:30:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Nov 26 23:22:44 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-6.979 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: Debian GNU/Linux (3.16.0-4-amd64) User-Agent: Mutt/1.5.23 (2014-03-12) X-Mailing-List: archive/latest/13231 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20151126232211.GT16403@sar0.p1otr.com Approved: robomod@news.nic.it Lines: 23 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 27 Nov 2015 00:22:11 +0100 X-Original-Message-ID: <20151126232211.GT16403@sar0.p1otr.com> X-Original-References: <85bndmc0ln.fsf@benfinney.id.au> <85k2s99q1h.fsf@benfinney.id.au> <857fl49xop.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:7916 [Ben Finney, 2015-11-26] > * Patch upstream's ‘setup.py’ to rename the command file to something > like ‘execute-lorem’, so that it can be installed alongside the > ‘lorem’ package directory. instead of patching I usually let it install into /usr/bin and mv it to /usr/share/foo/ under a different name (and then symlink) - see f.e. gaupol's debian/rules > * Create a symlink in the application-private directory, making an > application namespace from which to import the private modules. in gaupol I use --install-lib=/usr/share/gaupol/ so that in the end I have: /usr/share/gaupol/gaupol - the library /usr/share/gaupol/run - the script /usr/bin/gaupol→/usr/share/gaupol/run - symlink -- Piotr Ożarowski Debian GNU/Linux Developer www.ozarowski.pl www.griffith.cc www.debian.org GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645