Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: Amend Debian Python Proposal to Include More Python Metadata? Date: Fri, 22 Jan 2016 18:00:04 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Jan 22 16:51:54 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-11.98 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 Dkim-Signature: v=1; a=rsa-sha256; c=simple/simple; d=kitterman.com; s=201409; t=1453481497; bh=lvQoWaV+CkLjtUU53MiYv6CEIqZptoVzhqG/W5nykmc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wRAAq0BFJSrTYpp9nx35NjcsySVHdxKi6xDzPr1YGWW1Ipl1V66imBnEwYFxnR+SI 93a7q7/pc7E9DjXC2qW6FwUqfqUHnQwQJe12dhxKolypMMgEpFQ4e7hVpsY8NNry3M YjsT5j2hqbAaJcNJmOeXd7ISWB91d8auD+UQEesI= User-Agent: KMail/4.13.3 (Linux/3.13.0-71-generic; KDE/4.13.3; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1777971.evxMpdSXJF"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Mailing-List: archive/latest/13442 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/9261112.hNuDnqD9aP@kitterma-e6430 Approved: robomod@news.nic.it Lines: 93 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 22 Jan 2016 11:51:30 -0500 X-Original-Message-ID: <9261112.hNuDnqD9aP@kitterma-e6430> X-Original-References: <20160122153607.GE11588@sar0.p1otr.com> Xref: csiph.com linux.debian.maint.python:8119 --nextPart1777971.evxMpdSXJF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On Friday, January 22, 2016 10:54:54 AM Donald Stufft wrote: > > On Jan 22, 2016, at 10:36 AM, Piotr O=C5=BCarowski wrote: > >=20 > > to be honest, I still don't know what you're asking for. What do yo= u > > want us to do? Patch 2.7's distutils? >=20 > Essentially, ensure that setuptools not distutils is used in a setup.= py. > There are generally three kinds of setup.py files: >=20 > 1) Ones that use setuptools unconditionally - These ones you just lea= ve > alone, they are already correct and you should already have a build d= epends > on python-setuptools. 2) Ones that conditionally use setuptools - The= se > ones you just need to satisfy whatever condition the setup.py uses to= > enable setuptools. Typically this is just checking if setuptools is > importable but sometimes they use environment variables or similar. 3= ) Ones > that use distutils unconditionally - These ones you switch to making = them > use setuptools instead of distutils. >=20 > Now, that=E2=80=99s the high level overview, there=E2=80=99s an easie= r, more automatic way > that could maybe just be added to pybuild (Not sure exactly how pybui= ld > works) where instead of invoking the setup.py as: >=20 > python setup.py install (or whatever commands/args you=E2=80=99re= passing) >=20 > You do it as (taken from pip): >=20 > python -c "import setuptools, > tokenize;__file__=3D'$PWD/setup.py';exec(compile(getattr(tokenize, 'o= pen', > open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))=E2=80= =9D install > (or whatever commands/args you=E2=80=99re passing). >=20 > The thing is kind of ugly, but that will install things using setupto= ols > (just like pip does) regardless of if it imports setuptools or distut= ils in > it=E2=80=99s setup.py file. I tried this and it works, but what's the big deal? It provides a PKG-INFO file that has identical content to the old egg-i= nfo file,=20 an empty dependency links file, and a top_level.txt file with the one l= ine in=20 it. Why is this better (I'm not a huge upstream developer of Python stuff, = but I do=20 do some and I don't see what this gets me)? Scott K --nextPart1777971.evxMpdSXJF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABCAAGBQJWol4ZAAoJEHjX3vua1ZrxlDsP/A3Y8DEl6FfcmZJPu2G/7bbp ZUXqfbpfGLrYVaOkt0fS2PiUUUvs14EkM7tm2ghBoDJ1A/4nQOYK30vPP6odBIME +cd2/HpUw7N23im3R/y/bAhZl64O/MkCD30qdDp/umGHdOUDw3gq3KNl9RJ3trLL kD5YAPrWN4fv73d/+aJkvjoYJQnmDpBl56kf84D6uxF6eA2LoAzdJOwwlZ+Nu6sI /gpzQK7FinsWJX1Y1GFKJMoxsvsPYMQz3y/WPeNnCYyIgzJRcjTlKxMps2zKALaV QU+ys482KLQp+DkWV4P6tGu7C9LLRF1LURw9+0sXdsFt2EdljMXc2FlEgdcnnJ1h 9nsUaynuCF5hh8Aa5/lvOYx+TupGJVHnNqQsn80HV3VsRPoX9jaHh/znpRn0LalL KHxAREQVqAmxqyqojlmi2z71l3UkIiqj4IRTjfX47LO9oU7VYF28KCDLPuOcSHEk aFTIVKFd45fo0m8KCk0YJBCN4NwRDqjy2SlNdCd+RjmuM9x+GKXbu4Mt7wq2sN3q h+6a49RIMHrOIhmg/lH8cBM82H3hZ9ZimNN8XREpIrYOI41RBhPiCmuHrv3kDuMU 6/rwFfS2ILIdw5Z40HSAwHAH1ZT0bGq7YHvUOUqLG6VPR1qAdMAMyzaKxYPqW2G1 jVKOP/C16gPKFLhtMZ6T =hocE -----END PGP SIGNATURE----- --nextPart1777971.evxMpdSXJF--