Path: csiph.com!goblin2!goblin.stu.neva.ru!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Donald Stufft Newsgroups: linux.debian.maint.python Subject: Re: Dealing with flit -- a simplified packaging of python modules Date: Sat, 26 Sep 2015 05:30:01 +0200 Message-ID: References: X-Original-To: Ben Finney , debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Sat Sep 26 03:21:44 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7.72 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -7 Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=stufft.io; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=AJu++bTe4Ah6Ve6+bA/CQsrDHDA=; b=a1G6hm HvbpZ/KX8ZVIMXCLNymbMVnW5aOiq7ZTFBUExkv9/9GsX9Ht+ADfpXaThtiwvS55 AwLOLMg+Vj5jbbLedLGXbwMKc3xKomFzXdrKizfQ/Ss3bvbGwaCCcD2F9ygHgDNl 0z+f+Bb5t96J2WDGoUfFDYWuCdjjLCKdnjDS8= Dkim-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=AJu++bTe4Ah6Ve6 +bA/CQsrDHDA=; b=kce08Kyu6bIMTCtTu9/Cb14ouCUdyCfAo6g02jpILYNobDD x/s/frDE2IpanrUF4zvDFpWR0d/ME3IiHQf34KHwnDQtT6zHeiT2vXjG9nxh5iAI Cp7lk9UfFLmoCTFbz441SOgh/BH1M+tEC8kBtkzFypoGYXGL1I7cGE79/Czc= X-Sasl-Enc: 4aPx2X0o9c7xrwaC+SrR2K9Nl/35Xuf/gkEeiNLo1P6h 1443237686 X-Mailer: Airmail (303) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Mailing-List: archive/latest/12627 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/etPan.56060f36.9a18673.e5bb@Draupnir.home Approved: robomod@news.nic.it Lines: 82 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 25 Sep 2015 23:21:26 -0400 X-Original-Message-ID: X-Original-References: <20150919065638.GA23539@cauchy.localdomain> <1442648149.1507869.387905161.3D5B9334@webmail.messagingengine.com> <20150919123608.623ff7d8@limelight.wooz.org> <1442746052.1831540.388486761.7B81DA25@webmail.messagingengine.com> <1443093458.1327745.392368833.476CC9CB@webmail.messagingengine.com> <85y4fu2fpq.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:7318 On September 25, 2015 at 8:21:39 PM, Ben =46inney (ben+debian=40benfinney= .id.au) wrote: > Donald Stufft writes: > =20 > > On September 25, 2015 at 7:24:30 PM, Paul Wise (pabs=40debian.org) wr= ote: > > > Why are end users using source packages instead of binary packages > > > and then complaining that the source tarballs aren't ready-to-run > > > binary packages=3F > > > > Because the way Python packaging currently is and historically has > > been, binary packages are not something that is widely available or > > viable. > =20 > So, commendable effort has gone toward making that problem reduce, > perhaps eventually to go away. Congratulations are deserved for getting= > us this far, and thanks for continuing to push for feasible binary > distributions of Python packages on all supported OSen. > =20 > It seems reasonable, then, to also put effort toward making source > distributions more targeted toward being bundles of the released > *source* for the project version, and reducing the justification for > bundling non-source files in the source distribution. I think distutils/setuptools is to blame for a lot of this, they don't ma= ke it easy to have generated files that aren't either compiled C code or py(c=7C= o). Ideally in the future distutils/setuptools will no longer be special (exc= ept as a historical and legacy fallback) and we'll have something far more plugg= able in the future. This will ideally make it a lot easier and sane to have cu= stom build steps that create other generated files as part of the building of = a package. > =20 > Can we expect the value of =E2=80=9Cbut people expect non-source stuff = bundled > in the source distrubution=E2=80=9D to diminish, as some kind of object= ion to > making proper source distributions=3F It's certainly a goal of mine that we move as much of the upstream Python= packaging onto binary packages so that most people are not installing fro= m sdists or really, =22installing=22 from an sdist being an outdated concep= t and long term, the only thing we do with an sdist is turn it into a binary pa= ckage, even if that build step is taken on the end user's computer. I of course,= can't speak to everyone so it would not surprise me if some people simply will = never be willing to not distributed generated files as part of their sdist. I suspect this to be a long road though, and certainly the nature of *nix= makes it harder on us, since it's hard to make a binary package that works for = say, all of Linux due to ABI problems and such. The more cases where =60=60pip= install=60=60 has end users pulling from a sdist, the more resistence I suspect you'll = find from authors to making sdist have more complicated build steps. I suspect you'll have an easier time convinving authors of pure Python th= ings that include some generated files (translations, js, whatever) to rely en= tirely on wheels than you will have convincing authors of Python things that inc= lude some C or other compiled code that precludes universal(ish) Wheels. ----------------- Donald Stufft PGP: 0x6E3CBCE93372DC=46A // 7C6B 7C5D 5E2B 6356 A926 =4604=46 6E3C BCE9 = 3372 DC=46A