Re: Application libraries private, Distutils metadata available for console scripts and introspection

2015-09-01 Thread Robert Collins
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 ‘foo-1.2.3.egg-info’
> 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 (‘--install-lib=/usr/share/FooApp/’), and
>
> * its distribution metadata is discoverable (‘--install-metadata=???’
>   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

-- 
Robert Collins 
Distinguished Technologist
HP Converged Cloud



Re: Application libraries private, Distutils metadata available for console scripts and introspection

2015-09-01 Thread Piotr Ożarowski
it just works, are you sure the script you're invoking is in the right
dir?

| mkdir -p /tmp/foo/bar /tmp/foo/bar.egg-info
| cat >/tmp/foo/bar/__init__.py 

Bug#797692: ITP: aiocoap -- Python implementation of CoAP

2015-09-01 Thread Agustin Henze
Package: wnpp
Severity: wishlist
X-Debbugs-CC: debian-de...@lists.debian.org, debian-python@lists.debian.org


   Package name: aiocoap
Version: 0.1
Upstream Author: Maciej Wasilak , Christian
Amsüss 
URL: https://github.com/chrysn/aiocoap
License: MIT/X11
Description: Python implementation of CoAP
 The aiocoap package is a Python implementation of CoAP, the Constrained
 Application Protocol (RFC 7252, more info at http://coap.technology/).
 .
 It uses the asyncio module introduced in Python 3.4 to facilitate concurrent
 operations while maintaining a simple to use interface and not depending on
 anything outside the standard library.

-- 
TiN