the special setup routine is triggered by the environment variable CURRENTLY_PACKAGING which can be exported by debian/rules

This commit is contained in:
Georges Khaznadar 2019-11-01 10:58:17 +01:00 committed by Florian Festi
parent b288f58057
commit 02b819f51e
1 changed files with 2 additions and 3 deletions

View File

@ -46,9 +46,8 @@ class CustomBuildExtCommand(build_py):
self.execute(self.generate_mo_files, ())
self.execute(self.buildInkscapeExt, ())
if 'FAKEROOTKEY' in os.environ:
# we are probably running under fakeroot
# so we are probably building a Debian package
if 'CURRENTLY_PACKAGING' in os.environ:
# we are most probably building a Debian package
# let us define a simple path!
path="/usr/share/inkscape/extensions"
self.distribution.data_files.append(