dcefd54b367bb94e6ad591319173af478bdc7146
[pti/rtp.git] / meta-stx / recipes-core / stx-config / cgts-client.inc
1 #
2 ## Copyright (C) 2019 Wind River Systems, Inc.
3 #
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #      http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15
16 PACKAGES += " cgts-client"
17
18 inherit setuptools distutils python-dir
19 DEPENDS += " \
20         python-pbr-native \
21         "
22
23 RDEPENDS_cgts-client += " \
24         python-prettytable \
25         bash-completion \
26         python-neutronclient \
27         python-keystoneclient \
28         python-six \
29         python-httplib2 \
30         "
31
32 do_configure_append() {
33         cd ${S}/sysinv/cgts-client/cgts-client
34         distutils_do_configure
35
36
37 do_compile_append() {
38         cd ${S}/sysinv/cgts-client/cgts-client
39         distutils_do_compile
40 }
41
42 do_install_append() {
43         cd ${S}/sysinv/cgts-client/cgts-client
44         distutils_do_install
45 }
46
47 FILES_cgts-client = " \
48         ${bindir}/system \
49         ${PYTHON_SITEPACKAGES_DIR}/sysinv/ \
50         ${PYTHON_SITEPACKAGES_DIR}/cgtsclient/ \
51         ${PYTHON_SITEPACKAGES_DIR}/cgtsclient-*.egg-info \
52         ${PYTHON_SITEPACKAGES_DIR}/sysinv-*.egg-info \
53         "