1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
export PYBUILD_DESTDIR_python2=debian/python-cs/
export PYBUILD_DESTDIR_python3=debian/python3-cs/
%:
dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_install:
dh_install
# Move cs executable in its dedicated package
mkdir -p debian/cs/usr/bin
mv debian/python3-cs/usr/bin/cs debian/cs/usr/bin/cloudstack
rm -rf debian/python-cs/usr/bin
rm -rf debian/python3-cs/usr/bin
# Don't ship _async with Python 2 package
rm debian/python-cs/usr/lib/python2*/dist-packages/cs/_async.py
|