Ubuntu - Sync directories

Here modify the Ubuntu image to install python things in the same way
as the Centos family to ensure paths match

Change-Id: I8fb487f0e8b51fb3de9b4f6f2410675988ba33e9
Partially-Implements: blueprint install-from-ubuntu
This commit is contained in:
Sam Yaple 2015-08-24 15:17:42 +00:00
parent 04ba3ccb51
commit d568c47207

View File

@ -211,9 +211,12 @@ RUN apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com 199369E5404BD
libffi-dev \
libyaml-dev \
pkg-config \
&& apt-get clean
&& apt-get clean \
&& sed -i "s|'purelib': '\$base/local/lib/python\$py_version_short/dist-packages',|'purelib': '\$base/lib/python\$py_version_short/dist-packages',|;s|'platlib': '\$platbase/local/lib/python\$py_version_short/dist-packages',|'platlib': '\$platbase/lib/python\$py_version_short/dist-packages',|;s|'headers': '\$base/local/include/python\$py_version_short/\$dist_name',|'headers': '\$base/include/python\$py_version_short/\$dist_name',|;s|'scripts': '\$base/local/bin',|'scripts': '\$base/bin',|;s|'data' : '\$base/local',|'data' : '\$base',|" /usr/lib/python2.7/distutils/command/install.py \
&& rm -rf /usr/lib/python2.7/site-packages \
&& ln -s dist-packages /usr/lib/python2.7/site-packages
# Endif for install_type source
# Endif for base_distro ubuntu,debian
{% endif %}
{% if install_type == 'source' %}