Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #8615
| From | Neil Muller <drnlmuller+python@gmail.com> |
|---|---|
| Newsgroups | linux.debian.maint.python |
| Subject | Best practice for adding python3 version to existing module with helper programs? |
| Date | 2016-06-24 00:50 +0200 |
| Message-ID | <rNlBE-8bD-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
I'm working on packaging the latest version of sqlobject, which adds supprt for python 3, and I'm unsure of how best to handle the helper applications that ship as part of the package. The helper applications will work with both python2 and python3, so it's not clear to me how to apply the advice given in [1], and I'd ideally want the helper programs available regardless of which version of the module is installed. Looking at some other packages in the archive, there seem to be several approaches used to solve similar problems a) Bundle the application in both python2 and python3 version and use alternatives to manage the version (docutils and sphinx, for example, although in those cases the programs are used fairly extensively as applications) b) Install multiple copies with different names (foo and foo-py3 and similar ideas) c) Replace the helper with a combination shell / python script (django-admin for example [2]), which is cute. Is there any consensus on which approach is best? Any advice on the pitfalls or benefits of the various approachs? Other tricks I've missed? Thanks [1] https://wiki.debian.org/Python/LibraryStyleGuide [2] https://anonscm.debian.org/cgit/python-modules/packages/python-django.git/tree/debian/django-admin -- Neil Muller
Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread
Best practice for adding python3 version to existing module with helper programs? Neil Muller <drnlmuller+python@gmail.com> - 2016-06-24 00:50 +0200
Re: Best practice for adding python3 version to existing module with helper programs? Clint Byrum <spamaps@debian.org> - 2016-06-24 01:30 +0200
Re: Best practice for adding python3 version to existing module with helper programs? Ben Finney <ben+debian@benfinney.id.au> - 2016-06-24 07:40 +0200
Re: Best practice for adding python3 version to existing module with helper programs? Barry Warsaw <barry@debian.org> - 2016-06-24 15:40 +0200
csiph-web