Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #866302

Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package

From Ondrej Novy <novy@ondrej.org>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package
Date 2017-12-01 12:20 +0100
Message-ID <uRRwm-3I7-3@gated-at.bofh.it> (permalink)
References <uRQgV-2I8-9@gated-at.bofh.it> <uRQJX-37W-3@gated-at.bofh.it> <uRQgV-2I8-9@gated-at.bofh.it> <uRQJX-37W-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi,

2017-12-01 11:25 GMT+01:00 Simon McVittie <smcv@debian.org>:

> Within Debian, wouldn't this be better achieved by having Python 2 packages
> that require enum34 depend on python-enum34 directly, as they already do?
> python-enum34 could have a Provides on some other name if that helped.
>

I already tried this solution.

I added:
https://anonscm.debian.org/cgit/python-modules/packages/enum34.git/commit/?id=ed2496b8582d939a8ad48769a8b513e916d9df5a

which should handle deps to be automatically added by pybuild, which works.

But when some packages requires enum-compat in setup.py:
https://anonscm.debian.org/cgit/python-modules/packages/python-eventlet.git/tree/setup.py#n16

But even with this change you need to patch upstream code, see:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=881989

Without this patch, setuptools install deps fails (tries to download it
from pypi). Build of eventlet doesn't fail, because it doesn't downloads
requirements from pypi. But other packages which depends on eventlet fails.

The proposed name also isn't really compatible with Debian Python
> policies: you can't `import enum_compat` after installing it.
>

you can't, but enum-compat will be even more confusing. Because
python-enum-compat will contain
'/usr/lib/python2.7/dist-packages/enum_compat-0.0.2.egg-info i think
python-enum-compat is correct.

-- 
Best regards
 Ondřej Nový

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

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package "Ondřej Nový" <novy@ondrej.org> - 2017-12-01 11:00 +0100
  Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package Simon McVittie <smcv@debian.org> - 2017-12-01 11:30 +0100
    Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package Ondrej Novy <novy@ondrej.org> - 2017-12-01 12:20 +0100
      Bug#883246: ITP: python-enum-compat -- Python enum/enum34 compatibility package Simon McVittie <smcv@debian.org> - 2017-12-01 12:50 +0100

csiph-web