Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: teng zhaozhi Newsgroups: linux.debian.maint.python Subject: Re: Byte-compilation for pypy3 Date: Mon, 27 Aug 2018 07:50:02 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Aug 27 05:40:34 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-0.349 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, EMPTY_BODY=3, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-wm0-x22d.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=cmoAJjeq55eNo/C2eb4h8sw6HgpQ0lf6IRvAEaW4heE=; b=oFlF25/s7dv1yfoNNWxNf/8uy2m+xoa5+2nV4Pa5KwkR+XLNAQke6wwBmutKVITcDc XqLP9qpxDZb/5SOatUAr/HyNNKTWoEVZ9PdWrzJqBw+jPwSOYNSoJh8hyUOXPrfKzcEi +RrEobYjAAhbxW5640j0XIBGBBpvImqx+cEbnbzSOIXmgeCY5uH7L2edHgI38z2Lerff BF7cIzvDsalSqUpNxRvHVYDNJA3OeFi4xQpcBXL91HwUxphhoTm3UU2Opz4B0zoBX8/2 2bEg8lvSlwot6lKVYTYxtnjFrfk1RJLk9a/q/1WVKx+y1+xB6HPBpQu3jmUEdUp4MNnb 8XCA== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=cmoAJjeq55eNo/C2eb4h8sw6HgpQ0lf6IRvAEaW4heE=; b=OZkULEug8H32pLH8Xw9NhPhUBLN7UcpoFA0ySqq5fAVgrcLzk4xyMeznY6l37oXFl6 MZQMZrn4a4foeE48eEPYa6v5xBC9FvcfIWwGddeYC8RRBUgMA/JkFuPWeJPPpRkgWmYx pJFO4boQQCGyOGgpaUAHN36n+bCo0CF8vpD5/x4UPsHRUdLpvQnVxP65jqACKynDN+eT wC9AQ3x4/MsPJj9jYqp5hmyfWjeq62y+8Oi3zA4AScX4JWbEMDqcEUz/xyouqILbaQnh jd0ZpnrIJnx5mxqnZ8nJvBcyxe8tzjmsoRE759m94w4aIS8D2xhCY9jOInNnVaAKd/0e ozVw== X-Gm-Message-State: APzg51AJid7sqDx5Jn22D+YYQhD8zOQVIZBohFr6+nDkT0mm/kVKU+yE wfZ+Adw877vS63T64529c2pL7nrtKgsdjc+0dnwuj8Gk X-Google-SMTP-Source: ANB0VdaJy1inUDiw1OGYCHTvgA9+Gu4NQRqF0JtGypPLXEVV6KGspbdyMXweOC5Y8TAwsAWqKeZY01phXwB7vhge48Q= X-Received: by 2002:a1c:4182:: with SMTP id o124-v6mr4452156wma.101.1535348416184; Sun, 26 Aug 2018 22:40:16 -0700 (PDT) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f4088305746428fc" X-Mailing-List: archive/latest/16273 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAKuTEWA7mhWR5hCfifQORg18hMx5j6hb=A4R1rpERhV26GTC9g@mail.gmail.com Approved: robomod@news.nic.it Lines: 139 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 27 Aug 2018 13:40:04 +0800 X-Original-Message-ID: X-Original-References: <20180827015556.a7us7rxxkv6thflt@bach.rivera.co.za> Xref: csiph.com linux.debian.maint.python:10851 --000000000000f4088305746428fc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Unsubscribed On Mon, Aug 27, 2018 at 10:04 AM Stefano Rivera wrote= : > So, I've had some pypy3 packages sitting around for a while, and the > main thing that's stopped me from uploading, is figuring out a plan for > byte-compilation. > > If it's sharing /usr/lib/python3/dist-packages with cPython (which it > currently is) then we should figure out a plat for byte-compiling for > it. > > rtupdate and postinst / prerm hooks for python3 packages currently call > py3{compile,clean} which only operates on cpython3. > > Options I can think of: > 1. Ignore byte-compilation entirely. > 2. Change py3{compile,clean} to call pypy3{compile,clean} too. > And do some extra compiling / cleaning when pypy3 is installed and > removed. > 3. Change py3{compile,clean} to do the work of pypy3{compile,clean} too. > And do some extra compiling / cleaning when pypy3 is installed and > removed. > 4. Change the snipets dh_python3 generates, to include > pypy3{compile,clean}, when they exist. And again, do the extra > compiling / cleanup. > 5. Something else? > > 3 *seems* like the right option - py3{compile,clean} supports a range of > cpython versions, already. But I'm not really sure. > > Here's what I've got: > https://salsa.debian.org/debian/pypy3 > https://people.debian.org/~stefanor/pypy3/ > > Other TODOs that need some attention but possibly aren't blocking an > upload to unstable: > * test failures and errors > * import paths aren't quite right, yet, e.g.: > - setup.py install installs to a /usr/local path that isn't on > sys.path > - plat-linux2 is on sys.path, but doesn't exist > > SR > > -- > Stefano Rivera > http://tumbleweed.org.za/ > +1 415 683 3272 > > --=20 Kind regards =E6=BB=95=E5=8F=AC=E6=99=BA (Ben teng) Cell: 13381221392 MSN: freet15@hotmail.com Skype: freet15 --000000000000f4088305746428fc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Unsubscribed

On Mon, Aug 27, 2018 at 10:04 AM Stefano Rivera <stefanor@debian.org> wrote:
So, I've had some pypy3 packages sitting ar= ound for a while, and the
main thing that's stopped me from uploading, is figuring out a plan for=
byte-compilation.

If it's sharing /usr/lib/python3/dist-packages with cPython (which it currently is) then we should figure out a plat for byte-compiling for
it.

rtupdate and postinst / prerm hooks for python3 packages currently call
py3{compile,clean} which only operates on cpython3.

Options I can think of:
1. Ignore byte-compilation entirely.
2. Change py3{compile,clean} to call pypy3{compile,clean} too.
=C2=A0 =C2=A0And do some extra compiling / cleaning when pypy3 is installed= and
=C2=A0 =C2=A0removed.
3. Change py3{compile,clean} to do the work of pypy3{compile,clean} too. =C2=A0 =C2=A0And do some extra compiling / cleaning when pypy3 is installed= and
=C2=A0 =C2=A0removed.
4. Change the snipets dh_python3 generates, to include
=C2=A0 =C2=A0pypy3{compile,clean}, when they exist. And again, do the extra=
=C2=A0 =C2=A0compiling / cleanup.
5. Something else?

3 *seems* like the right option - py3{compile,clean} supports a range of cpython versions, already. But I'm not really sure.

Here's what I've got:
https://salsa.debian.org/debian/pypy3
https://people.debian.org/~stefanor/pypy3/

Other TODOs that need some attention but possibly aren't blocking an upload to unstable:
* test failures and errors
* import paths aren't quite right, yet, e.g.:
=C2=A0 - setup.py install installs to a /usr/local path that isn't on =C2=A0 =C2=A0 sys.path
=C2=A0 - plat-linux2 is on sys.path, but doesn't exist

SR

--
Stefano Rivera
=C2=A0 http://tumbleweed.org.za/
=C2=A0 +1 415 683 3272



--
Kind regards<= br>=E6=BB=95=E5=8F=AC=E6=99=BA (Ben teng)
Cell:=C2=A0=C2=A0 13381221392<= br>MSN:=C2=A0=C2=A0 freet15@hotmail.= com
Skype: freet15
--000000000000f4088305746428fc--