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


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

Bug in pybuild's handling of --install-lib? [Was: Re: entry-point script and private module install directory]

From Ghislain Vaillant <ghisvail@gmail.com>
Newsgroups linux.debian.maint.python, linux.debian.devel.mentors
Subject Bug in pybuild's handling of --install-lib? [Was: Re: entry-point script and private module install directory]
Date 2016-05-12 13:30 +0200
Message-ID <rxWOS-4u5-23@gated-at.bofh.it> (permalink)
References <rxEIi-2LV-13@gated-at.bofh.it> <rxGAp-4yw-7@gated-at.bofh.it> <rxUam-1Mc-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


On 12/05/16 09:22, Ghislain Vaillant wrote:
> On 11/05/16 18:55, Piotr Ożarowski wrote:
>> you can create a wrapper or patch /usr/bin script to
>> sys.path.append('/usr/share/pyfr') but the easiest solution is to
>> install the script to /usr/share/pyfr/ (if the module is "pyfr" as well,
>> simply rename the script to "run" or any other name) and then symlink it
>> to /usr/bin/pyfr)
>>
>>    override_dh_auto_install:
>>     dh_auto_install -- --install-lib=/usr/share/pyfr/
>>     mv debian/pyfr/usr/bin/pyfr debian/pyfr/usr/share/pyfr/run
>>
>> and add "/usr/share/pyfr/run /usr/bin/pyfr" to debian/pyfr.links
>
> Thanks Piotr, that's the solution I have been looking for.
>
> Ghis

Actually, on second look, Piotr's solution currently fails:

d/rules:

export PYBUILD_DESTDIR=$(CURDIR)/debian/tmp
[...]
override_dh_auto_install:
	dh_auto_install -- --install-lib=/usr/share/pyfr
	mv $(PYBUILD_DESTDIR)/usr/bin/pyfr $(PYBUILD_DESTDIR)/usr/share/pyfr/run


build log:

dh_auto_install -- --install-lib=/usr/share/pyfr
	install -d debian/pyfr
	install -d debian/pyfr-doc
	pybuild --install -i python{version} -p 3.5 
--install-lib=/usr/share/pyfr --dir . --dest-dir /<<PKGBUILDDIR>>/debian/tmp
usage: pybuild [ACTION] [BUILD SYSTEM ARGS] [DIRECTORIES] [OPTIONS]
pybuild: error: unrecognized arguments: --install-lib=/usr/share/pyfr


Whereas this succeeds:

d/rules:

export PYBUILD_DESTDIR=$(CURDIR)/debian/tmp
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/pyfr
[...]
override_dh_auto_install:
         dh_auto_install
         mv $(PYBUILD_DESTDIR)/usr/bin/pyfr 
$(PYBUILD_DESTDIR)/usr/share/pyfr/run


build log:

dh_auto_install
	install -d debian/pyfr
	install -d debian/pyfr-doc
	pybuild --install -i python{version} -p 3.5 --dir . --dest-dir 
/<<PKGBUILDDIR>>/debian/tmp
I: pybuild base:184: /usr/bin/python3 setup.py install --root 
/<<PKGBUILDDIR>>/debian/tmp --install-lib=/usr/share/pyfr
running install
running build
running build_py
running install_lib
[...]


Is this a bug in pybuild or am I missing something?

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


Thread

entry-point script and private module install directory Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-11 18:10 +0200
  Re: entry-point script and private module install directory Piotr Ożarowski <piotr@debian.org> - 2016-05-11 20:00 +0200
    Re: entry-point script and private module install directory Piotr Ożarowski <piotr@debian.org> - 2016-05-11 20:20 +0200
    Re: entry-point script and private module install directory Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-12 10:30 +0200
      Bug in pybuild's handling of --install-lib? [Was: Re: entry-point  script and private module install directory] Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-12 13:30 +0200
        Re: Bug in pybuild's handling of --install-lib? [Was: Re:  entry-point script and private module install directory] Piotr Ożarowski <piotr@debian.org> - 2016-05-12 14:20 +0200
          Re: Bug in pybuild's handling of --install-lib? [Was: Re: entry-point  script and private module install directory] Ghislain Vaillant <ghisvail@gmail.com> - 2016-05-12 15:00 +0200

csiph-web