Copy the openstack-common stuff manually, as it's not there.

This commit is contained in:
Thomas Goirand
2014-12-23 17:20:26 +08:00
parent 1d03e9691a
commit af98b04d29
4 changed files with 3 additions and 19 deletions

2
debian/changelog vendored
View File

@@ -2,7 +2,7 @@ python-oslo.concurrency (0.3.0-1) UNRELEASED; urgency=medium
* New upstream release.
* Added python-retrying as (build-)depends.
* Patch MANIFEST.in to include the openstack-common folder.
* Copy the openstack-common stuff manually, as it's not there.
-- Thomas Goirand <zigo@debian.org> Tue, 23 Dec 2014 10:44:01 +0800

View File

@@ -1,17 +0,0 @@
Description: Fix missing .py files
It's looking like upstream MANIFEST.in is wrong and doesn't package some of
the .py files inside oslo_concurrency.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2014-12-23
--- python-oslo.concurrency-0.3.0.orig/MANIFEST.in
+++ python-oslo.concurrency-0.3.0/MANIFEST.in
@@ -2,5 +2,6 @@ include AUTHORS
include ChangeLog
exclude .gitignore
exclude .gitreview
+recursive-include oslo_concurrency *.py
global-exclude *.pyc
\ No newline at end of file

View File

@@ -1 +0,0 @@
Fix-missing-dot-py.patch

2
debian/rules vendored
View File

@@ -15,11 +15,13 @@ override_dh_install:
set -e ; for pyvers in $(PYTHONS); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python-oslo.concurrency; \
cp -r oslo_concurrency/openstack $(CURDIR)/debian/python-oslo.concurrency/usr/lib/python$$pyvers/dist-packages/oslo_concurrency ; \
done
set -e ; for pyvers in $(PYTHON3S); do \
python$$pyvers setup.py install --install-layout=deb \
--root $(CURDIR)/debian/python3-oslo.concurrency; \
done
cp -r oslo_concurrency/openstack $(CURDIR)/debian/python3-oslo.concurrency/usr/lib/python3/dist-packages/oslo_concurrency ; \
rm -rf $(CURDIR)/debian/python*-oslo.concurrency/usr/lib/python*/dist-packages/*.pth
override_dh_auto_test: