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


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

pybuild python3 postinst

From "Weatherby,Gerard" <gweatherby@uchc.edu>
Newsgroups linux.debian.maint.python
Subject pybuild python3 postinst
Date 2018-03-23 20:20 +0100
Message-ID <vwAoi-2sr-9@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I have a python package that produces both python2 and python3 modules; e.g. using debian/rules:
 
export PYBUILD_NAME=hello

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

----
My test debian/postinst is:

case "$1" in 
    configure)
        echo "have a nice day"
    ;;

    abort-upgrade|abort-remove|abort-deconfigure)
    ;;

    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

#DEBHELPER#

---
  
 The resulting python-hello.postinst is as I'd expect, with DEBHELPER replaced, but the python3-hello.postinst is just the generated boilerplate. How can I get the python3-hello.postinst to work the same as the python-hello version?

--  
Gerard Weatherby| Application Architect 
NMRbox | Department of Molecular Biology and Biophysics | UConn Health 
263 Farmington Avenue, Farmington, CT 06030-6406 
Phone: 860 679 8484 
uchc.edu     

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


Thread

pybuild python3 postinst "Weatherby,Gerard" <gweatherby@uchc.edu> - 2018-03-23 20:20 +0100
  Re: pybuild python3 postinst Andrey Rahmatullin <wrar@debian.org> - 2018-03-23 20:40 +0100
    RE: pybuild python3 postinst "Weatherby,Gerard" <gweatherby@uchc.edu> - 2018-03-23 22:40 +0100

csiph-web