Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: Ben Finney Newsgroups: linux.debian.maint.python Subject: Re: Application libraries private, Distutils metadata available for console scripts and introspection Date: Tue, 01 Sep 2015 07:40:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Sep 1 05:35:25 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.112 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.015, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.427] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 X-Injected-Via-Gmane: http://gmane.org/ Lines: 27 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:BbSkRSh9/RapdXmhZjxA80h39sc= X-Mailing-List: archive/latest/12529 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/857foabt2z.fsf@benfinney.id.au Approved: robomod@news.nic.it Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 01 Sep 2015 15:35:00 +1000 X-Original-Message-ID: <857foabt2z.fsf@benfinney.id.au> X-Original-References: <85bndmc0ln.fsf@benfinney.id.au> X-Original-X-Complaints-To: usenet@ger.gmane.org Xref: csiph.com linux.debian.maint.python:7222 Robert Collins writes: > PKG resources should find it anywhere in the python path. That's exactly the point, though. The packages are private to this application, and should not be available for import by other programs. On the other hand, the Distutils metadata (the ‘foo-1.2.3.egg-info’ directory) should be available for the program. What I'd like is for the distribution to be installed such that: * its modules are private (‘--install-lib=/usr/share/FooApp/’), and * its distribution metadata is discoverable (‘--install-metadata=???’ except there doesn't seem to be such an option). > I'd the path correct within the all processes? I don't know. I would not expect to need to alter how the program is run in order for it to find its own distribution metadata. -- \ “When I get real bored, I like to drive downtown and get a | `\ great parking spot, then sit in my car and count how many | _o__) people ask me if I'm leaving.” —Steven Wright | Ben Finney