Path: csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod From: Andrey Rahmatullin Newsgroups: linux.debian.maint.python Subject: Re: PYTHONPATH with cmake build Date: Tue, 30 Aug 2022 19:00:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Tue Aug 30 16:56:54 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.01 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -3.5 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Z7gbXDRSHjI2PSed" Content-Disposition: inline X-Mailing-List: archive/latest/20247 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/Yw5BQd5gECuz2V+Z@belkar.wrar.name Approved: robomod@news.nic.it Lines: 59 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Tue, 30 Aug 2022 21:56:33 +0500 X-Original-Message-ID: X-Original-References: <185024340.2308857.1661867906140.JavaMail.zimbra@synchrotron-soleil.fr> <1885471923.2393430.1661873161950.JavaMail.zimbra@synchrotron-soleil.fr> <62107125.2425333.1661875321047.JavaMail.zimbra@synchrotron-soleil.fr> Xref: csiph.com linux.debian.maint.python:14409 --Z7gbXDRSHjI2PSed Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 30, 2022 at 06:02:01PM +0200, PICCA Frederic-Emmanuel wrote: > > When trying to run tests you should look how does the upstream intend to > run them. >=20 >=20 > Yes they are building inplace the module like this >=20 > from https://github.com/dials/dxtbx/blob/main/.azure-pipelines/unix-build= =2Eyml >=20 >=20 > # Build dxtbx > - bash: | > set -e > . conda_base/bin/activate > set -ux > mkdir build > cd build > cmake ../modules/dxtbx > cmake --build . --target install > pip install ../modules/dxtbx Oh. In this case setting PYTHONPATH (if it works, and I'm not 100% sure it will) sounds like a better option. So, the cmake build path is, as far as I know, defined in /usr/share/perl5/Debian/Debhelper/Buildsystem.pm to be just "obj-$DEB_HOST_GNU_TYPE". --=20 WBR, wRAR --Z7gbXDRSHjI2PSed Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJhBAABCgBLFiEEolIP6gqGcKZh3YxVM2L3AxpJkuEFAmMOQUEtFIAAAAAAFQAP cGthLWFkZHJlc3NAZ251cGcub3Jnd3JhckBkZWJpYW4ub3JnAAoJEDNi9wMaSZLh 9v0P/1GvBxvg1S525JPcdkpdkwKF/P/l4W0u9zosLxUyNLz4UJl9HbggZ+zIAztk eB0MW19vmQc4RwbQnVOr2JjjtrLULhNxPfm2Q8iiP3XvobCYC0erd+1y2bFQ01QR Qsddbd3X+KswyVxYYs3YXEz7CIzGDkeCuLzPy6/rm3xS/jw2oLSzPkLAS3C6FaPy PeOjQRWaR0ieYZ+P7VO4L44bBqyyotoXAyO09O2ZkQ72CU7h/RMgSy4M8OH463G8 vbQsLLWQ/STPsnK53aNpOy1YU7KSDsNY4ejKSjEKiICtGQH1wL0EVIyL6J1T4GGG fQ6omsS6j75Z06ppYZkRRSn4H4/W0BQ/tDv/XJKWRud/rC7eS/R9tTAzaksSnU/g yAhJqfVCFNTkt+w8pcXQBlJCPgwH+ql6VEEnDgbF9feXK34oRk4DIEFPzCDZP9v8 zwUa15/ojnf+Tw85lmZk3cX9LGDdbmEddFWXF7Dy7GySq+v7k730+VnFQy5Mlh0/ 9pfWjE7MyAbeKd2bOGPm/x7vuGhE4aNicw4gyXPVTBDP6YlBpgkztLc876jeetAC zb/Uv1WA78kaJgZQu+7cZUdtLoJSLCAHTSKRtGN4U3muLlYKIsnYImi1/pvCTKf8 dkl66pTYCgNvNjGwEDINuUAmkejEuSummRK4KO3PVNmzPRYv =74pP -----END PGP SIGNATURE----- --Z7gbXDRSHjI2PSed--