Path: csiph.com!news.freedyn.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.szaf.org!feedme.news.telefonica.de!storethat.news.telefonica.de!telefonica.de!news.panservice.it!bofh.it!news.nic.it!robomod From: Donald Stufft 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-Mailbox-Line: From debian-python-request@lists.debian.org Fri Jan 22 16:55:14 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.7 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -7 Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=stufft.io; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=jwFfF DadEfkLpGP5Jm2PZIOefzE=; b=uHAwytVR4mj/Tmw14iUOWr5PLApfr8pSws87c wJFkBIN+ONLt1+OuE11fB7ZkCl/su2myAa400PhtTFr/ejJqPxgmSy8+0PuOc98s /fRsDNpjT9RBejJi3M8wPs1DLsKpC3nYRZBt5shkhe39jYB1oJ4u/O+uTEKdAlMp e/uuuU= Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=jwFfFDadEfkLpGP5Jm2PZIOefzE=; b=V6Vg7 dYvQ/XXWNPzDGfw8bwAqHw15AAVeUqSwwnDA+3APXqt+QBQE04SVnYcwqq9DJ/9w ybZ1nhrhrwijcZt2RKNZ8yRn/blx0um0t+67wD1WmFxsSK7BKLQ7y35amedBYGmQ GhOoF7DCtv2dqQrzWZ4ao4bpXzN9orVsKxJo+k= X-Sasl-Enc: Gg6QitdvBq9AlfOPWAJJxWLejpaOpvuGAhu1pQe/lOpa 1453481695 Content-Type: multipart/signed; boundary="Apple-Mail=_643FCA93-5359-4106-98C2-2D39C60A1174"; protocol="application/pgp-signature"; micalg=pgp-sha512 MIME-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) X-PGP-Agent: GPGMail 2.6b2 X-Mailer: Apple Mail (2.3112) X-Mailing-List: archive/latest/13443 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/D82B77D8-6B87-46DD-9B39-D2EC0D9D3510@stufft.io Approved: robomod@news.nic.it Lines: 97 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 22 Jan 2016 11:54:24 -0500 X-Original-Message-ID: X-Original-References: <20160122153607.GE11588@sar0.p1otr.com> <20160122161836.GG11588@sar0.p1otr.com> Xref: csiph.com linux.debian.maint.python:8120 --Apple-Mail=_643FCA93-5359-4106-98C2-2D39C60A1174 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jan 22, 2016, at 11:18 AM, Piotr O=C5=BCarowski = wrote: >=20 > let's make a deal. If you will make sure pip doesn't touch system = files > (and others will not crucify me for this) - I will make sure pybuild > uses above line (if setuptools is not detected in setup.py but is = listed > in Build-Depends). Regardless of what happens in this thread, pip is going to stop mucking = around in files that are owned by some other tool without some sort of = opt-in/--force style flag *and* we're going to be restructuring things to try and guide = people away from using pip outside of a virtual environment or through the user = of --user as well. The main reason why that hasn't happened yet isn't because I'm holding = those things hostage, it's because I'm one person and my time is spread = amongst several really important tools and I have to prioritize things in = accordance to how bad it's on fire. In addition, pip is a cross platform program and = we have to ensure that whatever we do works in a cross platform manner. You = mentioned /usr/local/.../site-packages/ before, but plenty of systems don't have a /usr/local/.../site-packages/ that their Python respects because that is = a Debian specific patch, so if we refused to install to = /usr/.../site-packages/ we'd break installing at the system level on all platforms but Debian = derived ones. What we need is a cross platform way to determine if a particular = installed Python package is "owned" by the system or if it's something we're = allowed to modify. That's going to require some effort to work out the exact best = way, but in my head the way forward on that is to use the metadata directory = (the one I'm asking y'all to start using) and add an additional piece of = metadata inside of it that just says "Hey, This is a system install" that we can = inspect and then take additional logic (like refusing to touch it without a = --force) based on that. The change I'm asking for here helps make that possible = (among other things). ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 = DCFA --Apple-Mail=_643FCA93-5359-4106-98C2-2D39C60A1174 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJWol7fAAoJEG48vOkzctz6wZMQAIvoyG2lOKGv2RgQyRkJYs2E fyD25+fLILOFQDXwkFL82HPzOrqHJuYE/VXfTOjzwkzJsSfGDEFsPw5y0N44lyTP ipqJdfk7bw1DuuRS60DUfR3XzmWnFkhRu/dJfxJUSMJ3UTOLSit/NyXIOI8UDts3 57eMMjVSyw/UdDwHd9b5JDoZTuGpVoSr21tNF5rarr8jsE8WVTalLI7evh7ZX8SX BL+7S7W7aybRafbu+JO2jyBuLwqEB6d/q7j2Klon0YnyOcH7LyfhWput20w2gB84 yTgMjPDWh5R+QbfUd0xiAqXfVPqKDt9WUrM/bthc07bToxeYcDolg1c6x5Lbd18C 6S93IWWViQKIEKMUGZiYVDJj2PiFyDZKuvZWqOziaSIHmLXFQ9NCCVCIQaXXUaX0 8l4W/evRGagJ0c2n8SAmtguDNouyzmfJvSlk4IOJmZPWq4h48x8WthxF3w2H32EL UoywDY3C2iv5Mx+gwYxKGXbaBiOauvO3STjWdN2S0frAaJk2UgdvXQ38ZmcRGMWr BS6kWzxVFwsVim5poupGEKqwEe2P8dSbgmm3zrIlOUbh1RPokAl9OoqNt/wfZ+ir 1bv/t2JSJpprAu1i0TLtYXkcprzKUXztwOecQC1cdpOBu7YFIn7nemy8Q90RKu6z /UHo+DWExWl9+6JlPPGW =7vjq -----END PGP SIGNATURE----- --Apple-Mail=_643FCA93-5359-4106-98C2-2D39C60A1174--