Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #14416

Re: PYTHONPATH with cmake build

Path csiph.com!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr>
Newsgroups linux.debian.maint.python
Subject Re: PYTHONPATH with cmake build
Date Wed, 31 Aug 2022 11:30:01 +0200
Message-ID <F0scN-4iWY-7@gated-at.bofh.it> (permalink)
References <F0apz-47z4-1@gated-at.bofh.it> <F0azg-47Cd-5@gated-at.bofh.it> <F0bOF-48hk-1@gated-at.bofh.it> <F0bOF-48hk-15@gated-at.bofh.it> <F0chI-48FT-1@gated-at.bofh.it> <F0hKp-4bVc-1@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Wed Aug 31 09:24:11 2022
Old-Return-Path <frederic-emmanuel.picca@synchrotron-soleil.fr>
X-Amavis-Spam-Status No, score=-0.011 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, RCVD_IN_MSPIKE_H2=-0.001, THREADTOPIC=2, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Mailer Zimbra 8.8.15_GA_4272 (zclient/8.8.15_GA_4272)
Thread-Topic PYTHONPATH with cmake build
Thread-Index EfsZyUqQgByCFhoaiZuvNa5/jGHdGA==
X-Renater-Ptge-Spamstate clean
X-Renater-Ptge-Spamscore -100
X-Renater-Ptge-Spamcause gggruggvucftvghtrhhoucdtuddrgedvfedrvdekhedgudefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvfevkfgjfhfugggtgffothesthejtgdtredtjeenucfhrhhomheprffkveevtecuhfhrvgguvghrihgtqdfgmhhmrghnuhgvlhcuoehfrhgvuggvrhhitgdqvghmmhgrnhhuvghlrdhpihgttggrsehshihntghhrhhothhrohhnqdhsohhlvghilhdrfhhrqeenucggtffrrghtthgvrhhnpeefjeejfffghffgjeduveevtdetffejudduffdvffekteffkeehhfdtfefhfeeufeenucfkphepuddtrddvheegrddvgedtrddugeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddtrddvheegrddvgedtrddugeehpdhhvghlohepiihsthhorhgvqdgsfedqtdduvddrphgrrhhtrghgvgdrrhgvnhgrthgvrhdrfhhrpdhmrghilhhfrhhomheprffkveevtecuhfhrvgguvghrihgtqdfgmhhmrghnuhgvlhcuoehfrhgvuggvrhhitgdqvghmmhgrnhhuvghlrdhpihgttggrsehshihntghhrhhothhrohhnqdhsohhlvghilhdrfhhrqedpnhgspghrtghpthhtohepvddprhgtphhtthhopehsthgvfhgrnhhorhesuggvsghirghnrdhorhhgpdhrtghpthhtohepuggvsghirghnqdhphihthhhonheslhhishhtshdruggv sghirghnrdhorhhg
X-Mailing-List <debian-python@lists.debian.org> archive/latest/20254
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/2121261189.2842521.1661936743699.JavaMail.zimbra@synchrotron-soleil.fr
Approved robomod@news.nic.it
Lines 31
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-python@lists.debian.org
X-Original-Date Wed, 31 Aug 2022 11:05:43 +0200 (CEST)
X-Original-Message-ID <2121261189.2842521.1661936743699.JavaMail.zimbra@synchrotron-soleil.fr>
X-Original-References <185024340.2308857.1661867906140.JavaMail.zimbra@synchrotron-soleil.fr> <Yw4fsZMTSHE9Bhpq@belkar.wrar.name> <1885471923.2393430.1661873161950.JavaMail.zimbra@synchrotron-soleil.fr> <Yw4zCfFpt383rI4E@belkar.wrar.name> <62107125.2425333.1661875321047.JavaMail.zimbra@synchrotron-soleil.fr> <20220830221516.dl5skl76birs27tw@satie.tumbleweed.org.za>
Xref csiph.com linux.debian.maint.python:14416

Show key headers only | View raw


Hello Stephano

I end up with this

#! /usr/bin/make -f 

export DH_VERSOBE=1

export PYBUILD_NAME=dxtbx 
export PYBUILD_SYSTEM=distutils
export PYBUILD_AFTER_CONFIGURE=cmake -DPython_EXECUTABLE=/usr/bin/{interpreter} -S . -B {build_dir}/lib
export PYBUILD_AFTER_BUILD=make -C {build_dir}/lib
export PYBUILD_BEFORE_TEST=cp {build_dir}/lib/lib/*.so {build_dir}
export PYBUILD_BEFORE_INSTALL=cp {build_dir}/lib/lib/*.so {build_dir}; rm -rf {build_dir}/lib

%:
        dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:                  

it seem to work but I am am not really confident with the 'rm -rf {build_dir}/lib' during the install
If I do not remove these files, they got installed by pybuild.

no more magical obj-$blabla path :)


I now can concentrate on the unit test failures...

Cheers

Fred

Back to linux.debian.maint.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

PYTHONPATH with cmake build PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2022-08-30 16:30 +0200
  Re: PYTHONPATH with cmake build Andrey Rahmatullin <wrar@debian.org> - 2022-08-30 16:40 +0200
    Re: PYTHONPATH with cmake build PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2022-08-30 18:00 +0200
      Re: PYTHONPATH with cmake build Andrey Rahmatullin <wrar@debian.org> - 2022-08-30 18:00 +0200
        Re: PYTHONPATH with cmake build PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2022-08-30 18:30 +0200
          Re: PYTHONPATH with cmake build Andrey Rahmatullin <wrar@debian.org> - 2022-08-30 19:00 +0200
            Re: PYTHONPATH with cmake build PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2022-08-30 19:20 +0200
              Re: PYTHONPATH with cmake build Neil Williams <codehelp@debian.org> - 2022-08-30 20:10 +0200
            Re: PYTHONPATH with cmake build PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2022-08-30 19:30 +0200
          Re: PYTHONPATH with cmake build Stefano Rivera <stefanor@debian.org> - 2022-08-31 00:20 +0200
            Re: PYTHONPATH with cmake build PICCA Frederic-Emmanuel <frederic-emmanuel.picca@synchrotron-soleil.fr> - 2022-08-31 11:30 +0200
              Re: PYTHONPATH with cmake build stefanor@debian.org - 2022-08-31 11:40 +0200

csiph-web