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


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

pybuild python3 postinst

Path csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From "Weatherby,Gerard" <gweatherby@uchc.edu>
Newsgroups linux.debian.maint.python
Subject pybuild python3 postinst
Date Fri, 23 Mar 2018 20:20:02 +0100
Message-ID <vwAoi-2sr-9@gated-at.bofh.it> (permalink)
X-Original-To "debian-python@list.debian.org" <debian-python@list.debian.org>
X-Mailbox-Line From debian-python-request@lists.debian.org Fri Mar 23 19:12:34 2018
Old-Return-Path <prvs=162080f482=gweatherby@uchc.edu>
X-Amavis-Spam-Status No, score=-5.31 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, THREADTOPIC=2, T_RP_MATCHES_RCVD=-0.01, XMSATT=2] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -6.1
X-Greylist delayed 2931 seconds by postgrey-1.36 at bendel; Fri, 23 Mar 2018 19:12:18 UTC
Thread-Topic pybuild python3 postinst
Thread-Index AQHTwtPzOeLZPYBvkEWX7C8tmsvFDQ==
Accept-Language en-US
Content-Language en-US
X-Ms-Has-Attach yes
X-Originating-IP [10.91.27.87]
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2018-03-23_11:,, signatures=0
X-Proofpoint-Spam-Details rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=637 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803230205
X-Ms-Exchange-Transport-Fromentityheader Hosted
Content-Type multipart/mixed; boundary="_006_152182940160624925uchcedu_"
MIME-Version 1.0
X-Proofpoint-Virus-Version vendor=fsecure engine=2.50.10432:,, definitions=2018-03-23_11:,, signatures=0
X-Proofpoint-Spam-Details rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=630 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803230208
X-Mailing-List <debian-python@lists.debian.org> archive/latest/15697
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/1521829401606.24925@uchc.edu
Approved robomod@news.nic.it
Lines 176
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Fri, 23 Mar 2018 18:23:21 +0000
X-Original-Message-ID <1521829401606.24925@uchc.edu>
Xref csiph.com linux.debian.maint.python:10298

Show key headers only | 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