and Replace snf-pithos-backend to avoid conflicts when both packages get
installed
Architecture: all
Depends: ${misc:Depends}, ${python:Depends}
Provides: ${python:Provides}
+Replaces: snf-pithos-backend
XB-Python-Version: ${python:Versions}
Description: Synnefo pithos tools
-
override_dh_auto_install:
dh_auto_install
+ # this package provides the pithos namespace __init__.py
+ # because snf-pithos-backend also provides this file
+ # Replaces setting has been added to control file to avoid
+ # dpkg existing files errors
+ for py in $(shell pyversions -vr debian/control); do \
+ cp pithos/__init__.py debian/$(package)/usr/lib/python$$py/*-packages/pithos/; \
+ done
+
for py in $(shell pyversions -vr debian/control); do \
rm debian/$(package)/usr/lib/python$$py/*-packages/*-nspkg.pth; \
done