"get_python_lib() :for pip install, data_files with get_python_lib() are copied with duplicate path name on ubuntu"

2019-04-08 Thread Saba Kauser
Hi there, I have the following in setup.py : from distutils.sysconfig import get_python_lib data_files = [ (get_python_lib(), ['./README.md']), (get_python_lib(), ['./LICENSE']), (get_python_lib(), ['./CHANGES']), (get_python_lib(), ['./config.py.sample'])] setup( name = PACKAGE, version = VER

Re: [Tutor] Questions

2019-04-08 Thread William Ray Wing via Python-list
Diana, I’m answering you via the Tutor list - please, the accepted protocol is to send all questions and answers to the list so answers can be seen by (and possibly help) others. Having said that, I should have paid more attention to your original question, which is really going to require answ

Re: Logging cf Reporting = Friday Filosofical Finking

2019-04-08 Thread DL Neil
Is logging an unpopular package? Is extending its use, as described, interesting/inappropriate/illogical/downright-crazy? On 5/04/19 8:34 AM, DL Neil wrote: Is the logging module an ideal means to provide (printed) user reports, or is it a 'bad fit' and not designed/fit for such a purpose?

Re: Getting file extensions [linux fs]

2019-04-08 Thread Paulo da Silva
Às 01:35 de 06/04/19, Pablo Lucena escreveu: > Have you looked into eBPF? I'll take a look at that. Thanks Pablo. -- https://mail.python.org/mailman/listinfo/python-list

Type hinting

2019-04-08 Thread Joseph L. Casale
Hi, Is it possible to associate combinations of types for a given signature, for example: T = TypeVar('T', Foo, Bar, Baz) S = TypeVar('S', FooState, BarState, BazState) closure = 'populated dynamically' def foo(factory: Callable[[List[T], str], None], state: S) -> List[T]: results = []