[py3porters-devel] Bug#782942: Please provide a python3 module

Andreas Tille tille at debian.org
Tue May 19 16:36:08 UTC 2015


Hi,

On Tue, May 19, 2015 at 06:18:14PM +0200, Johannes wrote:
> >>As part of an ongoing process to migrate as much as we can to Python 3 to
> >>ensure we're ready for our glorious Python 3 future, please build a Python 3
> >>module.
> >
> >This is fixed in SVN.
> 
> amazing, I not find anything about that. Is this in Trunk? I checked the
> debian 0.22 and 0.33.

svn checkout svn+ssh://svn.debian.org/svn/debian-med/trunk/packages/python-hl7/trunk/

(I used svn+ssh since any DD has commit permissions ...)
 
> >#!/usr/bin/python3
> ># EASY-INSTALL-ENTRY-SCRIPT: 'hl7==0.3.2','console_scripts','mllp_send'
> >__requires__ = 'hl7==0.3.2'
> >import sys
> >from pkg_resources import load_entry_point
> >
> >if __name__ == '__main__':
> >     sys.exit(
> >         load_entry_point('hl7==0.3.2', 'console_scripts', 'mllp_send')()
> >     )
> >
> >
> >for Python just the #! line points to /usr/bin/python.  This script would
> >create a conflict between the python-hl7 and python3-hl7 package which is
> >unneeded.  Do you have some advise what to do in cases like this?
> >
> 
> Do i get it right, its all about the hl7?  What about the straight forward
> way, setting __requires__ iff sys.version > '3'?

The thing is that a script with the same name and same purpose exists in
both packages.  I might force the user to use python3-hl7 if the script
should be used but I see no strong reason to keep it away from users who
explicitly want only python-hl7.  Do you agree or do you think I should
simply remove it from the python-hl7 package?

Kind regards

    Andreas.

-- 
http://fam-tille.de



More information about the py3porters-devel mailing list