1 # Copyright 2017 Intel Research and Development Ireland Limited
2 # *************************************************************
4 # This file is part of OSM Monitoring module
5 # All Rights Reserved to Intel Corporation
7 # Licensed under the Apache License, Version 2.0 (the "License"); you may
8 # not use this file except in compliance with the License. You may obtain
9 # a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16 # License for the specific language governing permissions and limitations
19 # For those usages not covered by the Apache License, Version 2.0 please
20 # contact: prithiv.mohan@intel.com or adrian.hoban@intel.com
22 #__author__ = "Prithiv Mohan"
23 #__date__ = "14/Sep/2017"
35 pip
install --upgrade setuptools
37 VER1
=$(shell git describe | sed
-e
's/^v//' |cut
-d-
-f1
); \
38 VER2
=$(shell git describe | cut
-d-
-f2
); \
39 VER3
=$(shell git describe | cut
-d-
-f3
); \
41 cp requirements.txt build
/
47 cp
-r devops_stages build
/
51 build
: clean openstack_plugins prepare
52 python
-m py_compile build
/plugins
/OpenStack
/*.py
54 build
: clean vrops_plugins prepare
55 python
-m py_compile build
/plugins
/vRealiseOps
/*.py
57 build
: clean cloudwatch_plugins prepare
58 python
-m py_compile build
/plugins
/CloudWatch
/*.py
60 build
: clean core prepare
61 python
-m py_compile build
/core
/message_bus
/*.py
64 cd build .
/setup.py sdist
65 cd build .
/plugin_setup.py sdist
67 package
: clean clean_deb prepare
68 apt-get
--yes
install python-software-properties \
74 cd build
&& python setup.py
--command-packages
=stdeb.command sdist_dsc
--with-python2
=True
75 cd build
/deb_dist
/* && dpkg-buildpackage
-rfakeroot
-uc
-us
77 cp build
/deb_dist
/python-
*.deb .build
/
78 pip
install -r build
/requirements.txt
81 DEBIAN_FRONTEND
=noninteractive apt-get update
&& \
82 DEBIAN_FRONTEND
=noninteractive apt-get
install --yes python-pip
&& \
83 pip
install --upgrade pip
84 #dpkg -i build/deb_dist/*.deb
87 pip
install -r requirements.txt
88 cd build
&& .
/setup.py develop