bumped version, python3 now working, deprecated python build replaced with pybuild

This commit is contained in:
Markus Rosenstihl
2026-03-09 15:22:06 +01:00
parent 2fa5f5aa64
commit d6cb89b63c
6 changed files with 22 additions and 61 deletions
+4 -52
View File
@@ -7,58 +7,10 @@
export DH_VERBOSE=1
PYVERS=$(shell py3versions -vr)
PACKAGE_NAME=python3-damaris
PYBUILD_NAME=python3-damaris
MODULE_NAME=damaris3
PYBASE=$(CURDIR)/debian/${PACKAGE_NAME}
DH_ALWAYS_EXCLUDE=CVS:.svn
DH_ALWAYS_EXCLUDE=CVS:.git:venv
clean:
dh_testdir
dh_testroot
dh_installdirs
# Add here commands to clean up after the build process.
rm -f *-stamp
rm -rf dist build $(PYVERS:%=build-ext-%)
find . -name *\.py[co] -exec rm {} \;
dh_clean
build: build-stamp
build-stamp: $(PYVERS:%=build-ext-%)
touch $@
build-ext-%:
dh_testdir
python$* setup.py build
touch $@
install: install-stamp
# install menu related things
dh_install debian/damaris3.desktop /usr/share/applications/
install-stamp: build-stamp $(PYVERS:%=install-ext-%)
install-ext-%:
python$* setup.py install --root $(PYBASE) --install-layout=deb
echo "DAMARIS3 script: removing path to local installation"
-sed 's/^sys.path.insert(0,.*).*/# damaris package is found on default path/' <$(PYBASE)/usr/bin/DAMARIS3 >$(PYBASE)/usr/bin/DAMARIS3.new
-mv $(PYBASE)/usr/bin/DAMARIS3.new $(PYBASE)/usr/bin/DAMARIS3
binary-indep: build install
dh_link usr/share/python3-damaris/doc usr/share/doc/python3-damaris/html
dh_link usr/share/python3-damaris/images usr/share/doc/python3-damaris/images
dh_link usr/share/python3-damaris/images/DAMARIS3.png usr/share/icons/DAMARIS3.png
dh_testdir -i
dh_testroot -i
dh_installchangelogs -i
dh_installdocs -i
dh_python3
dh_installmenu -i
dh_compress -i -X.py
dh_fixperms -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
binary-arch: build install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
%:
dh $@ --buildsystem=pybuild