Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode)

2018-11-09 Thread Adam Cécile

Just tried but it's not working:

I wrote:

dir|3.7-|/usr/lib/python3/dist-packages/tensorflow/

But installing the package gives:

Traceback (most recent call last):
  File "/usr/bin/py3compile", line 290, in 
    main()
  File "/usr/bin/py3compile", line 266, in main
    e_patterns = get_exclude_patterns()
  File "/usr/bin/py3compile", line 93, in get_exclude_patterns
    for type_, vers, dname, pattern in get_exclude_patterns_from_dir():
  File "/usr/share/python3/debpython/__init__.py", line 22, in __call__
    self.cache[key] = self.func(*args, **kwargs)
  File "/usr/bin/py3compile", line 68, in get_exclude_patterns_from_dir
    type_, vrange, dname, pattern = line.split('|', 3)
ValueError: not enough values to unpack (expected 4, got 3)

I'm wondering if the "dir" type is actually supported: "re" type 
contains the appropriate number of fields.


Regards, Adam.

On 11/9/18 6:43 PM, Adam Cecile wrote:

Thanks a lot Nicolas !

It looks perfect, I made the modification but haven't been able to 
test it yet.


Le 8 novembre 2018 14:26:07 GMT+01:00, Nicolas Dandrimont 
 a écrit :


Hi!

* Adam Cécile  [2018-11-08 09:15:59 +0100]:

Hello list, I have a package working perfectly fine on Pyrhon
3.6 but using async/await methods so it cannot work on python
3.7 at the moment. During package compilation, I popd 3.7 from
supported version returned by py3version and it allows me to
build the package just fine: Problem: I cannot install it.
Despite 3.7 was not "enabled" during build, when installing
debian helpers try to compile bytecode for both 3.6 and 3.7
and fails. Is there any way to workaround that ? 



You can use the bcep (bytecompile exception pattern) mechanism. The
documentation can be found in dh_python3(1)[1] and
/usr/share/doc/dh-python/README.PyDist, and you can find some examples in
codesearch.


[1]https://manpages.debian.org/unstable/dh-python/dh_python3.1.en.html#bcep_files

HTH,


--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez 
excuser ma brièveté. 





Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode)

2018-11-09 Thread Adam Cecile
Thanks a lot Nicolas !

It looks perfect, I made the modification but haven't been able to test it yet.

Le 8 novembre 2018 14:26:07 GMT+01:00, Nicolas Dandrimont  a 
écrit :
>Hi!
>
>* Adam Cécile  [2018-11-08 09:15:59 +0100]:
>
>> Hello list,
>> 
>> 
>> I have a package working perfectly fine on Pyrhon 3.6 but using
>async/await
>> methods so it cannot work on python 3.7 at the moment.
>> During package compilation, I popd 3.7 from supported version
>returned by
>> py3version and it allows me to build the package just fine:
>> 
>> Problem: I cannot install it. Despite 3.7 was not "enabled" during
>build,
>> when installing debian helpers try to compile bytecode for both 3.6
>and 3.7
>> and fails. Is there any way to workaround that ?
>
>You can use the bcep (bytecompile exception pattern) mechanism. The
>documentation can be found in dh_python3(1)[1] and
>/usr/share/doc/dh-python/README.PyDist, and you can find some examples
>in
>codesearch.
>
>[1]
>https://manpages.debian.org/unstable/dh-python/dh_python3.1.en.html#bcep_files
>
>HTH,
>-- 
>Nicolas Dandrimont
>
>BOFH excuse #227:
>Fatal error right in front of screen

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma 
brièveté.

Re: [Salsa] DPMT Join Request from @mwei

2018-11-09 Thread Ondrej Novy
Hi,

čt 8. 11. 2018 v 12:19 odesílatel "Yao Wei (魏銘廷)"  napsal:

> I read the policy, but I found several questions about it.
>

you are right :)

Other than these two I have no problem about the rest of the policy.
>

cool, welcome.

-- 
Best regards
 Ondřej Nový

Email: n...@ondrej.org
PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B


Re: Updating the Python Modules *Team* policy

2018-11-09 Thread Ondrej Novy
Hi,

čt 8. 11. 2018 v 14:30 odesílatel Nicolas Dandrimont 
napsal:

> The DPMT policy[1] is still talking about Alioth and git-dpm, which is
> ever so
> slightly outdated. valhalla submitted a MR[2] a while ago to fix some of
> these
> references, but that ended up being a dead letter.
>

because this is just simple Alioth->DPMT migration I just squashed and
merged it.

Thanks.

-- 
Best regards
 Ondřej Nový

Email: n...@ondrej.org
PGP: 3D98 3C52 EB85 980C 46A5  6090 3573 1255 9D1E 064B