stdeb icon indicating copy to clipboard operation
stdeb copied to clipboard

postinstall/preinstall scripts not being used

Open wyllys66 opened this issue 8 years ago • 5 comments

Using stdeb 0.8.5 on Ubuntu 16.04.1

Previously I was able to build a .deb package from my python using bdist_deb with no issues. More recently I noticed that my -postinst and -preinst scripts are no longer being installed. They live in a "debian" directory at the top of my tree where I run:

python setup.py --command-packages=stdeb.command bdist_deb

But when I check the package that results, my custom post/pre install scripts are not being used in the package.

Did something change recently to break this feature? I cant find any documentation on it.

One workaround I found is to run bdist_deb (as above), then manually copy the post/pre install scripts to the deb_dist//debian/ directory and then run "dpkg-buildpkg -rfakeroot -uc -us" in the deb_dist/ directory, but thats redundant because it repackages everything again (with the correct post/pre install scripts though).

wyllys66 avatar May 03 '17 21:05 wyllys66

having same issue

zek avatar Jul 20 '18 05:07 zek

I have the same problem. Does anyone know when it stopped working?

jarek556 avatar Feb 26 '19 22:02 jarek556

Having the same issue - thanks for the workaround

benjaminforest avatar Mar 21 '20 13:03 benjaminforest

Created a PR, but since this project seems more or less inactive you can use my fork: https://github.com/danielbisar/stdeb I am currently not planning to release it but you can create a package using

/usr/bin/python setup.py --command-packages stdeb.command bdist_deb

Inside the repositories root (at least worked in my case). And install it on the target machine where you want to use it.

danielbisar avatar Aug 12 '22 07:08 danielbisar