Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postinstall/preinstall scripts not being used #132

Open
wyllys66 opened this issue May 3, 2017 · 5 comments
Open

postinstall/preinstall scripts not being used #132

wyllys66 opened this issue May 3, 2017 · 5 comments

Comments

@wyllys66
Copy link

wyllys66 commented May 3, 2017

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).

@zek
Copy link

zek commented Jul 20, 2018

having same issue

@jarek556
Copy link

jarek556 commented Feb 26, 2019

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

@benjaminforest
Copy link

Having the same issue - thanks for the workaround

@danielbisar
Copy link

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.

@furlongm
Copy link

Also experiencing the same issue. @nuclearsandwich any chance that PR could be merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants