Path: csiph.com!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Robert Collins Newsgroups: linux.debian.maint.python Subject: Re: Application libraries private, Distutils metadata available for console scripts and introspection Date: Tue, 01 Sep 2015 09:40:02 +0200 Message-ID: References: X-Original-To: Ben Finney X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Sep 1 07:33:18 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.72 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .robertcollins. - helo: .mail-ob0-f178.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jYbpQVSZUjKTG2k6rTtorBISOacg6y+xZarWU0GiK8Q=; b=lwwir+FMQG1ga4/bwFmm/ZIkTzkucfXng04k69oRlefrH7NvbXJMl9QWn+klAgvnEP G2IpXNq33gb23P8zGqr6ReBW8Lzkjw9LC7HQKi3obRJ+Ao3KKCtFE2/0yYIWwRGQRUex x2proXB24unbmwnJzqGexUmoCGGy3EYFbDkNj4ELaFkDJxWEsKNvqtzNcqTaZiBaZ0Ta jXJGKZuB6Zsc7ZaoMeLJtRIyPYJhuUnNhDHBgwgpHH02ZRRXGFV6mRGI9gPwBQ0rYnEy CjQjySAHCcRorH8nKjgHbejyFFcL7uhBVp5JbBoPjkJQTgOHPQgHWzWH9V05X/OT0+XL zU8A== X-Gm-Message-State: ALoCoQnsLNAqcxqoKqT5o9Wp6CjQep1CmkfnIY5B0KyAD1FRvdCS9PcUdVeWoAeB3553TH93yksl MIME-Version: 1.0 X-Received: by 10.60.92.199 with SMTP id co7mr10243300oeb.37.1441092780100; Tue, 01 Sep 2015 00:33:00 -0700 (PDT) X-Originating-IP: [202.6.117.175] Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailing-List: archive/latest/12531 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJ3HoZ2aFwrJSs33+=xKqT2uCZgNHXm5y6Cpy8fn0jS55uoWog@mail.gmail.com Approved: robomod@news.nic.it Lines: 46 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Tue, 1 Sep 2015 19:32:59 +1200 X-Original-Message-ID: X-Original-References: <85bndmc0ln.fsf@benfinney.id.au> <857foabt2z.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:7224 On 1 September 2015 at 17:35, Ben Finney wrote= : > 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. Right - I did not suggest they should be. > On the other hand, the Distutils metadata (the =E2=80=98foo-1.2.3.egg-inf= o=E2=80=99 > directory) should be available for the program. How is this the other hand? The Distutils data should be available to and only to the programs that are allowed to access the packages. > What I'd like is for the distribution to be installed such that: > > * its modules are private (=E2=80=98--install-lib=3D/usr/share/FooApp/=E2= =80=99), and > > * its distribution metadata is discoverable (=E2=80=98--install-metadata= =3D???=E2=80=99 > except there doesn't seem to be such an option). The distribution metadata is located via the python path; whatever mechanism is making FooApp accessible to the program *should* also make the metadata accessible, as long as: >> 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. That is one of two options for what is happening to make packages in /usr/share/FooApp/ accessible. Confirming it (or denying it) will let us debug the issue. -Rob --=20 Robert Collins Distinguished Technologist HP Converged Cloud