Permalink
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (55 sloc) 2.43 KB
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2011, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 or (at your
# option) any later version as published by the Free Software Foundation.
#
# For complete information please visit: http://www.zenoss.com/oss/
#
###########################################################################
PYTHON=python
SRC_DIR=$(PWD)/src
ZP_DIR=$(PWD)/ZenPacks/zenoss/OpenStack
BIN_DIR=$(ZP_DIR)/bin
LIB_DIR=$(ZP_DIR)/lib
default: egg
egg:
# setup.py will call 'make build' before creating the egg
python setup.py bdist_egg
build:
cd $(SRC_DIR)/pip-1.4.1 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
cd $(SRC_DIR)/pbr-0.5.21 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
cd $(SRC_DIR)/prettytable-0.7.2 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
cd $(SRC_DIR)/Babel-1.3 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
cd $(SRC_DIR)/requests-2.0.0 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
cd $(SRC_DIR)/iso8601-0.1.4 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
cd $(SRC_DIR)/simplejson-3.3.1 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
# convince novaclient not to try to download any dependencies. We have already taken
# care of them above.
cp /dev/null $(SRC_DIR)/python-novaclient-2.15.0/requirements.txt
cd $(SRC_DIR)/python-novaclient-2.15.0 && \
PYTHONPATH="$(PYTHONPATH):$(LIB_DIR)" $(PYTHON) setup.py install \
--install-lib="$(LIB_DIR)" --install-scripts="$(BIN_DIR)"
clean:
rm -rf build dist *.egg-info
find . -name '*.pyc' | xargs rm
cd $(NOVACLIENT_DIR) ; rm -rf build dist *.egg-info
rm -f $(BIN_DIR)/nova
cd $(LIB_DIR) ; rm -Rf *.egg site.py easy-install.pth