Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (3)
Try to force installation of the umis files
· 2fa6b54f
Andreas Tille
authored
Apr 13, 2019
2fa6b54f
Fix test
· 097a89f8
Andreas Tille
authored
Apr 13, 2019
097a89f8
Hack to install binary and modules correctly
· 19d1dcda
Andreas Tille
authored
Apr 13, 2019
19d1dcda
Show whitespace changes
Inline
Side-by-side
debian/rules
View file @
19d1dcda
...
...
@@ -3,7 +3,18 @@
# DH_VERBOSE := 1
export LC_ALL=C.UTF-8
# that's an ugly hack - no idea why the excutable is not created without this setting and the files need to be moved around later
export PYBUILD_NAME=umis
#PYBUILD_DESTDIR_python3=debian/umis
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
dh_install
mkdir -p debian/$(PYBUILD_NAME)
mv debian/python3-$(PYBUILD_NAME)/usr debian/$(PYBUILD_NAME)
rmdir debian/python3-$(PYBUILD_NAME)
find debian -type d -name __pycache__ | xargs rm -rf
debian/tests/run-unit-test
View file @
19d1dcda
...
...
@@ -11,10 +11,12 @@ if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
trap
"rm -rf
${
AUTOPKGTEST_TMP
}
"
0 INT QUIT ABRT PIPE TERM
fi
cp
-a
/usr/share/doc/
${
pkg
}
/
test
*
"
${
AUTOPKGTEST_TMP
}
"
cp
-a
/usr/share/doc/
${
pkg
}
/
*
"
${
AUTOPKGTEST_TMP
}
"
cd
"
${
AUTOPKGTEST_TMP
}
"
gunzip
-r
*
for
gz
in
$(
find
.
-type
f
-name
"*.gz"
)
;
do
if
[
!
-e
$(
echo
$gz
|
sed
's/\.gz$//'
)
]
;
then
gunzip
$gz
;
fi
done
sh test.sh