mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
23 lines
733 B
Bash
Executable File
23 lines
733 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
for package in python-dev python-pip python-virtualenv libevent-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
|
|
aptdcon --install $missing
|
|
fi
|
|
|
|
virtualenv --no-site-packages --distribute virtualenv
|
|
./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
|