Path: csiph.com!news.dns-netz.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod From: =?utf-8?B?RsOpbGl4?= Sipma Newsgroups: linux.debian.maint.python Subject: Re: package_data in python package Date: Mon, 28 Oct 2019 16:30:02 +0100 Message-ID: References: X-Original-To: Scott Kitterman X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Oct 28 15:28:59 2019 Old-Return-Path: X-Amavis-Spam-Status: No, score=-9.08 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, DKIM_VALID_EF=-0.1, FOURLA=0.1, LDO_WHITELIST=-5, MONEY=0.5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, STOCKLIKE=1] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gueux.org; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received:received; s=gueux.org; t= 1572276523; x=1574090924; bh=bn7KxlIBibZQzPDpj9MrklJ21ZoiiF4Q1Wj UBeqhxck=; b=X74+d/xiZ2oz8ZOpwtqUC2nHen1P82TZD2avdiVveDUndXEwOqz 5uhQSJ/5VVv1e+pHUGDggHB5RDmAvK93LtQNOJIyJ6bch2OIK+fmFZV3Srwh6cE5 /HguedKwluhzcK9nVxk9IyE5xNYRLOOOlW13oT9YyTRTCk/KhJfad+Gk= Mail-Followup-To: Scott Kitterman , debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="e6iw3mojobg5nwge" Content-Disposition: inline User-Agent: NeoMutt/20180716 X-Mailing-List: archive/latest/17523 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20191028152841.j7ycyfnpvoevgboj@capeo.gueux.org Approved: robomod@news.nic.it Lines: 100 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Mon, 28 Oct 2019 16:28:41 +0100 X-Original-Message-ID: <20191028152841.j7ycyfnpvoevgboj@capeo.gueux.org> X-Original-References: <20191028142544.zlzgobcvpm3yzbvt@capeo.gueux.org> <2505510.ydTWeorpcb@l5580> <20191028150240.hk5wrdpxhiv43w6g@capeo.gueux.org> <3360581.9UBmNTVxP0@l5580> Xref: csiph.com linux.debian.maint.python:11962 --e6iw3mojobg5nwge Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2019-10-28 11:15-0400, Scott Kitterman wrote: > On Monday, October 28, 2019 11:02:40 AM EDT F=C3=A9lix Sipma wrote: >> On 2019-10-28 10:44-0400, Scott Kitterman wrote: >>> It's the way setuptools works. Looking at the current upstream >>> recommendations: >>>=20 >>> https://python-packaging.readthedocs.io/en/latest/non-code-files.html >>>=20 >>> your solution seems correct. >>=20 >> Hi Scott, >>=20 >> Thanks for your message. I'm not sure I get why upstream can't reproduce >> the problem in this case... setuptools, as used in the setup.py seems to >> install the data dir just fine, and without my patch. >>=20 >> That's why I thought that it was maybe a limitation of dh-python... >=20 > It does depend considerably on how you do the install. For example, to= =20 > replicate what pip does (to get the data files installed) you have to do: >=20 > python setup.py install --single-version-externally-managed --record=3D/d= ev/null >=20 > I don't find I need to do that with pybuild though. I find setuptools ha= ndling=20 > of data files highly mysterious and counter-intuitive, so I doubt I'll ha= ve=20 > more specific advice. >=20 > Scott K They just run "python3 setup.py install" (https://github.com/scheibler/khar= d/issues/231): $ python3 -m venv test-for-231 $ source test-for-231/bin/activate $ python3 setup.py install $ tree test-for-231/lib/python3.7/site-packages/khard-0.15.0-py3.7.egg test-for-231/lib/python3.7/site-packages/khard-0.15.0-py3.7.egg =E2=94=9C=E2=94=80=E2=94=80 EGG-INFO =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 dependency_links.txt =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 entry_points.txt =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 not-zip-safe =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 PKG-INFO =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 requires.txt =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 SOURCES.txt =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 top_level.txt =E2=94=94=E2=94=80=E2=94=80 khard =E2=94=9C=E2=94=80=E2=94=80 actions.py =E2=94=9C=E2=94=80=E2=94=80 address_book.py =E2=94=9C=E2=94=80=E2=94=80 carddav_object.py =E2=94=9C=E2=94=80=E2=94=80 cli.py =E2=94=9C=E2=94=80=E2=94=80 config.py =E2=94=9C=E2=94=80=E2=94=80 data =E2=94=82 =E2=94=9C=E2=94=80=E2=94=80 config.spec =E2=94=82 =E2=94=94=E2=94=80=E2=94=80 template.yaml =E2=94=9C=E2=94=80=E2=94=80 helpers.py =E2=94=9C=E2=94=80=E2=94=80 __init__.py =E2=94=9C=E2=94=80=E2=94=80 khard.py =E2=94=9C=E2=94=80=E2=94=80 __main__.py =E2=94=9C=E2=94=80=E2=94=80 object_type.py =E2=94=94=E2=94=80=E2=94=80 version.py =20 3 directories, 20 files For my part, I "just" build the debian package with "gbp buildpackage", and with "dh $@ --with python3 --buildsystem=3Dpybuild" in debian/rules. The solutions I say are: I can keep the patch in the package (without really understanding the need for it) or try to convince upstream to merge it (but they can't reproduce the problem, so why would they do that?). In both cases, probably others will encounter the same problem in other packages... It would be nice to fix the problem once for all (if possible :)). Regards, --=20 F=C3=A9lix --e6iw3mojobg5nwge Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQR6zeIsS8L0XLQfqiQBpfxHUdFE8AUCXbcJKQAKCRABpfxHUdFE 8FDHAP9e3xyHf9lWhXxuXrKVXZskwADHRYMS+IDJKar5Porg7QD8DDmzFaxyYpLm 6ymQly0DsIvG2I9u8KVuREhKnoGm2wE= =Xq0l -----END PGP SIGNATURE----- --e6iw3mojobg5nwge--