Path: csiph.com!goblin1!goblin3!goblin.stu.neva.ru!news.szaf.org!news.unit0.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod From: Nicolas Dandrimont Newsgroups: linux.debian.maint.python Subject: Re: Allow installation on buster of a package not supporting 3.7 (async/await syntax error when generating bytecode) Date: Thu, 08 Nov 2018 14:40:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Nov 8 13:31:31 2018 Old-Return-Path: X-Amavis-Spam-Status: No, score=-11.651 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, FOURLA=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -6.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="x7syezsoquav3hly" Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) X-Mailing-List: archive/latest/16517 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/20181108132607.snjar3ygz5pyfuln@werner.olasd.eu Approved: robomod@news.nic.it Lines: 60 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: debian-python@lists.debian.org X-Original-Date: Thu, 8 Nov 2018 14:26:07 +0100 X-Original-Message-ID: <20181108132607.snjar3ygz5pyfuln@werner.olasd.eu> X-Original-References: <774a47d71fa3fcf88b0ab6d17cfd4cd9@le-vert.net> Xref: csiph.com linux.debian.maint.python:11082 --x7syezsoquav3hly Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! * Adam C=E9cile [2018-11-08 09:15:59 +0100]: > Hello list, >=20 >=20 > I have a package working perfectly fine on Pyrhon 3.6 but using async/awa= it > methods so it cannot work on python 3.7 at the moment. > During package compilation, I popd 3.7 from supported version returned by > py3version and it allows me to build the package just fine: >=20 > Problem: I cannot install it. Despite 3.7 was not "enabled" during build, > when installing debian helpers try to compile bytecode for both 3.6 and 3= =2E7 > and fails. Is there any way to workaround that ? You can use the bcep (bytecompile exception pattern) mechanism. The documentation can be found in dh_python3(1)[1] and /usr/share/doc/dh-python/README.PyDist, and you can find some examples in codesearch. [1] https://manpages.debian.org/unstable/dh-python/dh_python3.1.en.html#bce= p_files HTH, --=20 Nicolas Dandrimont BOFH excuse #227: Fatal error right in front of screen --x7syezsoquav3hly Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEk5VTAYR8rODpNPx77AWLMo2+neoFAlvkOW8ACgkQ7AWLMo2+ nepfig//fb4uWCvDyBLfd8euCPKqswBKjiIBE9Y+LsmMaWHEHa7iOVy7/eki+4Vm TtzIJ2szADxhBAw+deNaIfRFDGoyuZpYvtl5vB0BhFUkwtZ9AbwzbseRT4927mgQ /PheXDqNcDlJf8ZXEPiJPG1oWcca85ZmqWUQFYTZWDdphew2rYj2WA1fNhJwiXQY TucRb5yjY2zTL71o82XxFETPUv7/iYEQ90/n2RCpUDU6KAIhqLlC8tDoSD52ALZY M37DUY/jhvhVL68MkiQqGGYYsRCLB28a1L3ZbgPdQfp0M7eL0cMnutjX9P6vD6XZ IpKtgAh+sv2szBxoRjhAUx+34eofSTys0CLOycUZIHrpe07uOTq5TIsL/MCX3UYA 3YMP+7FI3IE7hn3NXYYlnKUXSW8QMQS7LXmwMiq718j8YeHaHifUrs0hY4NVU2Yx RRQYPHyTitx1zg9ItGcVk1VyGPi2mLtLYNAI2kve3BDsyvRcz6loAhmdqvQc5gKg 2GwzHHKjAQxoBpTnsNiGIYQXltHqyqCze11vG22L47r9evI2jfZjqb9bMwonERsg zI0QdKUOHeucOeU7mDTCJZDaY1+7Ukm5HMkfzL2VwvEOWch2OQGYb2CUNzGk9HP7 u5snq9pWUma+pnvlf0K9E40uryNDT2wQMlYPEa5qBtF8ay+a/44= =6gRy -----END PGP SIGNATURE----- --x7syezsoquav3hly--