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


Groups > linux.debian.maint.python > #10015

Re: Packaging with 2to3

From Michael Hudson-Doyle <michael.hudson@canonical.com>
Newsgroups linux.debian.maint.python
Subject Re: Packaging with 2to3
Date 2017-12-19 01:50 +0100
Message-ID <uYegx-7Kn-3@gated-at.bofh.it> (permalink)
References <uYbsl-5Sc-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

On 19 December 2017 at 10:26, Ole Streicher <olebole@debian.org> wrote:

> Hi,
>
> I want to create a package (pyraf, #711038) for both Python2 and
> Python3. While the package itself is still not Python 3 compatible,
> upstream says that running through 2to3 will make it; however the
> resulting code is not Python 2 compatible anymore.
>
> Is there a way to instruct pybuild to run the Python 3 code through
> 2to3?


python-urwid does this, by passing use_2to3 to the distutils setup()
function, I guess you could patch it to do the same.

Cheers,
mwh

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Packaging with 2to3 Ole Streicher <olebole@debian.org> - 2017-12-18 22:50 +0100
  Re: Packaging with 2to3 Thomas Goirand <zigo@debian.org> - 2017-12-18 23:20 +0100
  Re: Packaging with 2to3 Michael Hudson-Doyle <michael.hudson@canonical.com> - 2017-12-19 01:50 +0100
    Re: Packaging with 2to3 Piotr Ożarowski <piotr@debian.org> - 2017-12-19 13:40 +0100

csiph-web