Path: csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!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: Wed, 02 Sep 2015 11:10:02 +0200 Message-ID: References: X-Original-To: Ben Finney X-Mailbox-Line: From debian-python-request@lists.debian.org Wed Sep 2 09:06:23 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.701 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] 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-ig0-f172.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; bh=RrrMQGsTVk8okcfTi2MKX3LIo0KismpG6gI7n6nayG8=; b=ZceTQDD6l5El6RX4FIr2hpJn8xMelpuOvULY+zbQ/OlNL2iWQFSXTxbRsAoZMWMKBo eNuCx2pi1Bqun3srD7xyQBJIN0/paIUrOxq4gNSYz78AcBpQEtAxMsa4Gr2njjWLtAD9 FjdDUtwjcCC+N6SnuBiENV33sQayf3WI7GoKm/UaaIacmAlPd4xb96BSZdI6GHmatpXj TOqEPvX3iqQ+DXmQ8K8jm+69JlcC3GbnFYsLD6tNt4g9MQFEte0VqXqlrZR0j66P/bx+ Pxo0eXQh4Y/l+D7TS782st9hhk7UbDrKNuNNnyMBQMmVzrpi9h6vV5hhCufWormkVRAg zP1w== X-Gm-Message-State: ALoCoQkSe9DVbxd749Tuq7k1bFdK16607lmkKS8Ic7bt7SQjS8H2a5k8pm6YWwwmTgC97GHzvR5J MIME-Version: 1.0 X-Received: by 10.50.43.170 with SMTP id x10mr2116954igl.68.1441184761597; Wed, 02 Sep 2015 02:06:01 -0700 (PDT) X-Originating-IP: [122.57.98.209] Content-Type: text/plain; charset=UTF-8 X-Mailing-List: archive/latest/12535 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJ3HoZ1JYyL5WXwKwXWEBSCuc+217w375mf2BBNjgJ05a8FCSA@mail.gmail.com Approved: robomod@news.nic.it Lines: 24 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Debian Python X-Original-Date: Wed, 2 Sep 2015 21:06:01 +1200 X-Original-Message-ID: X-Original-References: <85bndmc0ln.fsf@benfinney.id.au> <85k2s99q1h.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:7228 On 2 September 2015 at 20:35, Ben Finney 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 when running the application (or the modules can't be imported). -Rob -- Robert Collins Distinguished Technologist HP Converged Cloud