Re: Fwd: Re: Use of "python" shebang an installation error?
Filipe Laíns <[email protected]> Wed, 22 Jul 2020 14:56:01 +0100
| Newsgroups | gmane.comp.python.distutils.devel |
|---|---|
| Organization | Archlinux |
| Message-ID | <[email protected]> |
On Tue, 2020-07-21 at 14:24 -0700, David Mathog wrote: > On Tue, Jul 21, 2020 at 2:03 PM Filipe Laíns <[email protected]> > wrote: > > On Tue, 2020-07-21 at 13:51 -0700, David Mathog wrote: > > > biopython-1.77, for instance, when installed into a virtualenv > > > with > > > pip3, has many of these shebangs: > > > > > > #!/usr/bin/env python > > > > > Is it being installed as an egg or wheel? Can you check what > > happens > > when you pass --use-pep517 to the pip install command (to force > > installing as a wheel)? > > > > It is wheel, it creates a directory > > biopython/lib/python3.6/site-packages/biopython-1.77.dist-info > > when installed either of these ways: > > pip3 install biopython > pip3 install biopython --use-pep517 > > Either way it has the same shebang in the files listed a few posts > up. > > Thanks, > > David Mathog You've fallen off-list again. The shebang handling for wheels is very well defined[1]. It looks like those shebangs come from biopython so it's their bug. No file a python package is supposed to be executed directly, so they shouldn't really have shebangs. The files that are superposed to be executed directly should be defined as scripts and have a #!python shebang so that the wheel installer can do its job properly. So unfortunately I think in most of the packages you are having issues with, the bug comes from the package upstream :/ [1] https://www.python.org/dev/peps/pep-0427/#recommended-installer-features Filipe Laíns -- Distutils-SIG mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/distutils-sig.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/57RSGEWY7ZWBFB53WNNBAMBCYWQF4JEI/
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0jW0leqs33gyftiw+JPGdIFqqV0FAl8YRWgACgkQ+JPGdIFq qV1dLw//UEf23lZHiaEF8bvMQGgXgpAppTxpWI8B4OEbgDg5znr0JTXBWYyTAYFF FFh2QC+Jwxl/7ctsHKwIsKfYMAb4PSvDC/OOPXILPhuHU0fj0uj1h7iZ+JILjiF/ 3FALL46bgYKRo8JfR0Qah7gSSaE+wGl6oQtLB4i0GQ0SoQfzhJFOV9gN3TsEQYTB cAHrvcb1zT6wdnTGzgoHDKu7c+N3PWR3EdZ1p8D0OBRQjNn3fJ7fSqHnbu2MMTcr y2JAkpsB68QzfSTxaEZZClwYBiKBGCE56EwUfpYoGUiEgeIGtF3X2mU9NnPTNEyp APoNtWZT5/3PedNslZ8jZx3hjqM7HJKfjYxgsfyzKG7FDfj/lVZKusi5x7qIpHuZ Ta2AxNERxioOAYEDsNt7UVy7IY82BLJqAf2TgV6+eYoSMvtVzqDsFujjCZVY/vJV Mq8sLOchPX7Tk8tt5kkElEJlkg9tSEFSneIJu6m6sZ/6Tg9pjrspvKubvLI4rMse pVTVRounvLyD5TXS50IHot9QqaEyMqet/UqLzX7sWk5ktT4megnJFVjlplCtlOni jMLzMolZt6xXXnJ4WYAGwZHB2MoyMtCcVxEhtily9i5FjjPBXRRWusJVW6ezELIl 7ZHDGxccQWvXARPiG/9OifxLhL2oaCv5+xlbtJLwaWiQdTMg1WE= =v9X/ -----END PGP SIGNATURE-----