Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Hugo Lefeuvre Newsgroups: linux.debian.maint.python Subject: Re: Python package providing both modules and an app Date: Thu, 23 Jun 2016 18:40:01 +0200 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Jun 23 16:39:18 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.699 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, HEADER_FROM_DIFFERENT_DOMAINS=0.001, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham 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: .eu. - helo: .relay5-d.mail.gandi. - helo-domain: .gandi.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -7 X-Originating-IP: 92.75.152.166 Mail-Followup-To: debian-python@lists.debian.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline User-Agent: Mutt/1.6.0 (2016-04-01) X-Mailing-List: archive/latest/13947 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20160623163829.GA2276@hle.local Approved: robomod@news.nic.it Lines: 70 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 23 Jun 2016 18:38:29 +0200 X-Original-Message-ID: <20160623163829.GA2276@hle.local> X-Original-References: <20160621211338.GC2172@hle.local> <8537o6xbf6.fsf@benfinney.id.au> <20160622195154.GA2416@hle.local> <85oa6sww7f.fsf@benfinney.id.au> Xref: csiph.com linux.debian.maint.python:8614 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > The entry point is generated by 'setup.py install_scripts', which is > > executed by pybuild after files specified in *.install have been > > installed (correct me if I'm wrong). >=20 > I haven't demonstrated for this case, but I would be surprised if that's > how it behaves. To my mind the =E2=80=98setup.py install=E2=80=99 command= (and hence the > =E2=80=98=E2=80=A6 install_scripts=E2=80=99 command) should be part of th= e =E2=80=98dh build=E2=80=99 sequence. >=20 > Again, someone should correct me if I'm wrong. Hum, the build logs suggest that =E2=80=98setup.py install=E2=80=99 is ran = during the=20 =E2=80=98dh binary=E2=80=99/=E2=80=98dh_auto_install=E2=80=99 sequence. Con= cerning the order of execution=20 in dh_auto_install, you're true: In fact, the files specified in=20 debian/*.install are installed after =E2=80=98setup.py install=E2=80=99 hav= e been executed.=20 However, it seems that setup.py is directly installing the entry point with= out=20 storing a copy of it in the current directory, so anyway I don't see how I= =20 could install the entry point in the application package via a debian/insta= ll=20 file[0]. So the question would rather be: how can I properly ask pybuild (setup.py ?= )=20 to install the entry point in the application package (slugify) instead of= =20 installing it in the library packages (python{3}-slugify) ? [0] and, even if I could do it, I think I would still have to override dh_auto_install to remove the installed entry points from the library packa= ges, which I originally wanted to avoid. :) --=20 Hugo Lefeuvre (hle) | www.owl.eu.com 4096/ ACB7 B67F 197F 9B32 1533 431C AC90 AC3E C524 065E --jI8keyz6grp/JLjh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXbBCFAAoJEKyQrD7FJAZeWs0P/i8CmXACGir4Yr08eHWnR0O+ BTdx0IPpuT4+pn1rFyLsDP1/YGH2RtDKXRodVj05OdK5QP6L6Z8TA/LTVr9YaCbX Q46RqmZQpp751APHDw2DSW7SISJvLV/BtOIynQN4tPF/TqLLWWgyiI4fXZwyTmJ2 iwyhgv0Nqof2yBMznspj2BX5MONT8y6rCjyg3fb4PN0RGSINGS2hTAm5phYRoh5K STRPw6FQj/DVxQiqRboYd8NfqDd9tuNsFcXmY+xwZ/12ReV5SunAxa2Xwu7pw1sH gGCVMPQrirnwM1FEPr8ciPojqyWVfks4DKc2WrhIemxp8quVaG9rq1eHRqWPZkOm JIXmoKQaubTBRLsqS1GHiA/cnNb/4jjM1q0wtdAAhefYG02gJIDbekTsjQh6/fJ2 P9r74nNXKtAoyhsjUw4L+t65BWX6C13bBNTjaBrpE1v2b5MSHKOVeXMepb/jIFeK mc6txt+CIRy5hetzeblHZBC+F1QsJJ0WL0zOYR9OhurIHfAlzNisgn0M3YdcJ1jL 3YwNFWa/jlsP88QKXfjduDMh4wkRl4PbVfghfiErzV2igK+itFvGNd+ShMFI+fm8 kAVgVscZm3HIY4KxtcBC9O5oATQOBQ/ockA4lETsVnORwD0uYq9YPpOZTiZiLNn1 6KigiwUR/pWZWuNrkknF =MxbW -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--