Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod From: Karsten Hilbert Newsgroups: linux.debian.maint.python Subject: Re: Application libraries private, Distutils metadata available for console scripts and introspection Date: Wed, 02 Sep 2015 11:20:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Sep 2 09:19:41 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.127 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-1.427] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Ma_X_Il-Followup-To: d Re_X_Turn-Receipt-To: Karsten.Hilbert@gmx.net Di_X_Sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_Rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_Ority: 2 (High) User-Agent: Mutt/1.5.23 (2014-03-12) Sender: robomod@news.nic.it X-Provags-ID: V03:K0:JMWZe7g7/xhKesjZoW+Z5tbsPXVTdLtx7bhv+V3Ay2UNpcz2Gtu EHLTp/ildfXuTvewxlMODy72hRyOGTBdAOs9J4JzpV7K1piaxKBCRM+BAwQE8fOuNXn3RMh RCXDw2YLhyqOoi2zhytWcG7E2OdfOvOtN5+uFCUkU1K062uW7giFaiWy/8HFOVhu9WtTuW5 uFFviu89EYKgOLAgDj/UQ== X-Ui-Out-Filterresults: notjunk:1;V01:K0:4vnizmh+FFY=:81csCV5TgXrOjFf0dmFTDl Xhp5gTcUR8P1U3/2yEhELSzvFx3j5yFCK5Qlhw2zOhWjtyRlf2cDfg9aEQQ8ctCFL1lLptys4 jKqu4NtQmyPuEjR8FkQaa1ZCZNn0j/5RxqURn9bFsaJD8tUW6xOqTQcqSS5FjRZAju4vrLpRH YQYZb+YrlxSc6hERyS5QXYYkHZrBombGSglYpOpAUEYVKiJDQUDGQ0ymbyrPX10eyrS89eVQz qdR7h7WyWRLxNFlr50Pvzknr/TQ/COPrAusHMHIoWVGAxqaTxDfUnEXxet817BfLBEdqvrpwD Q99UVBiBtHReRSQfXwMGvs/0HL1uckvu12tnVIRBa+f/g2sgW3ZE0jpVpY6qL+NQPgA4qjbVu pP5SWVjCQZzAHYFHxJLq3z1T9Bn/zp1WChoR7SgG0AhgiZOTjVJqSpKU7G4XMp8g+nmpDTJrw kBUTALdKEXs5H6duH21llwXazjGAbsRZne2Qz4bQyiRMYnAhGA7kJD8hcEO+mqNq4nKyBvt9I Q225hWlRSryakmC5+R9AfC8qLCr/OSbYzg1U1AZ42VO1GYbySglpRS55qBZs75kvGfYVccirl oeMX7YBVW/VnaloCFUW0LXsHWnM1usANCA54IDRLO8qevVScAL1rOOWLR7qVDTQzDL3EHpvDM /ouPFeUFH83MaWY7sRd3JvJBbC1mrVnyDJvUPGnZT2BgBEtGldneyp3afpuu7wLfSxIbDGIn3 g2mCsjZcmWSWU0ee X-Mailing-List: archive/latest/12536 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20150902091923.GA2390@hermes.hilbert.loc Approved: robomod@news.nic.it Lines: 33 Organization: linux.* mail to news gateway X-Original-Date: Wed, 2 Sep 2015 11:19:24 +0200 X-Original-Message-ID: <20150902091923.GA2390@hermes.hilbert.loc> X-Original-References: <85bndmc0ln.fsf@benfinney.id.au> <85k2s99q1h.fsf@benfinney.id.au> X-Original-Sender: karsten.hilbert@gmx.net Xref: csiph.com linux.debian.maint.python:7229 On Wed, Sep 02, 2015 at 09:06:01PM +1200, Robert Collins wrote: > > Ben Finney writes: > > > According to Robert's earlier message, that means the Distutils > > metadata file needs to be not in the application's private directory, > > but in a directory on the Python module search path. That seems odd to > > me, since this is not amodule import being done. > > So this is perhaps the disconnect: I did not say the metadata should > move: it should be in the private directory - it has to be adjacent to > the packages/modules its describing, since if it is present but the > package/module is not that is at the very best confusing for tools > like pip. > > That private directory must be on the python search path Maybe I'm a bit dense but isn't that what OP very much DOESN'T want to _happen_ ? Are you, by implication, saying that that's not _possible_ ? > when running the application (or the modules can't be imported). That reason doesn't hold -- the application can be written to (or told to) "know" where to look and manipulate sys.path accordingly (regardless of whether that's considered a good idea or not). Karsten -- GPG key ID E4071346 @ eu.pool.sks-keyservers.net E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346