Add python packages "bindep" file

Change-Id: Ia313a689d3b57578fe8f30a584e04ddc3af97a18
This commit is contained in:
Sam Yaple 2018-03-08 12:13:11 -05:00
parent 483a24fefa
commit 7a9855eb00
No known key found for this signature in database
GPG Key ID: 9329D8A45034DAB9
3 changed files with 11 additions and 10 deletions

View File

@ -17,6 +17,6 @@ ARG UID=42424
ARG GID=42424
COPY scripts /opt/loci/scripts
COPY bindep.txt /opt/loci/
COPY bindep.txt pydep.txt /opt/loci/
RUN /opt/loci/scripts/install.sh

7
pydep.txt Normal file
View File

@ -0,0 +1,7 @@
cryptography []
ldappool [(keystone ldap)]
libvirt-python [nova]
pyldap [(keystone ldap)]
pymysql []
python-memcached []
uwsgi []

View File

@ -50,17 +50,11 @@ $(dirname $0)/fetch_wheels.sh
if [[ "${PLUGIN}" == "no" ]]; then
$(dirname $0)/create_user.sh
$(dirname $0)/setup_pip.sh
$(dirname $0)/pip_install.sh \
bindep==2.6.0 \
cryptography \
pymysql \
python-memcached \
uwsgi
$(dirname $0)/pip_install.sh bindep==2.6.0
PACKAGES=($(bindep -f /opt/loci/pydep.txt -b -l newline ${PROJECT} ${PROFILES} ${python3} || :))
$(dirname $0)/pip_install.sh ${PACKAGES[@]}
fi
if [[ ${PROJECT} == 'nova' ]]; then
$(dirname $0)/pip_install.sh libvirt-python
fi
$(dirname $0)/clone_project.sh
$(dirname $0)/pip_install.sh /tmp/${PROJECT} ${PIP_PACKAGES}
$(dirname $0)/install_packages.sh