mirror of
https://github.com/ceph/ceph
synced 2024-12-25 12:54:16 +00:00
eaa3e1240e
The error message was "pip's wheel support requires setuptools >= 0.8 for dist-info support." Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
36 lines
1.2 KiB
Bash
Executable File
36 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
for package in python-dev python-pip python-virtualenv libevent-dev python-libvirt libmysqlclient-dev; do
|
|
if [ "$(dpkg --status -- $package|sed -n 's/^Status: //p')" != "install ok installed" ]; then
|
|
# add a space after old values
|
|
missing="${missing:+$missing }$package"
|
|
fi
|
|
done
|
|
if [ -n "$missing" ]; then
|
|
echo "$0: missing required packages, please install them:" 1>&2
|
|
echo "sudo apt-get install $missing"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$NO_CLOBBER" ] || [ ! -e ./virtualenv ]; then
|
|
# site packages needed because libvirt python bindings are not nicely
|
|
# packaged
|
|
virtualenv --system-site-packages --distribute virtualenv
|
|
|
|
# avoid pip bugs
|
|
./virtualenv/bin/pip install --upgrade pip
|
|
|
|
# work-around change in pip 1.5
|
|
./virtualenv/bin/pip install setuptools --no-use-wheel --upgrade
|
|
fi
|
|
|
|
./virtualenv/bin/pip install -r requirements.txt
|
|
|
|
# forbid setuptools from using the network because it'll try to use
|
|
# easy_install, and we really wanted pip; next line will fail if pip
|
|
# requirements.txt does not match setup.py requirements -- sucky but
|
|
# good enough for now
|
|
./virtualenv/bin/python setup.py develop \
|
|
--allow-hosts None
|