d7573c28f9
https://stackoverflow.com/questions/55657752/django-installing-mysqlclient-error-mysqlclient-1-3-13-or-newer-is-required Fix with guide from stackoverflow. After openstack image upgrade to ussuri, Django upgrade to 2.2, which request mysqlclient newer than 1.3.13, conflict with version 0.9.3 in current image. Fix with WA in above link, and currently we use pymysql not mysql. Closes-Bug: 1908117 Change-Id: Ic7054c6736993394d92bb0aec25397fd22f84d31 Signed-off-by: Chen, Haochuan Z <haochuan.z.chen@intel.com>
19 lines
951 B
Plaintext
19 lines
951 B
Plaintext
BUILDER=loci
|
|
LABEL=stx-horizon
|
|
PROJECT=horizon
|
|
PROJECT_REPO=https://opendev.org/openstack/horizon.git
|
|
PIP_PACKAGES="pycrypto python-ceilometerclient \
|
|
coverage pyudev \
|
|
ldap pylint"
|
|
PROFILES="fluent horizon apache"
|
|
CUSTOMIZATION="\
|
|
sudo cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-rh-python36-wsgi.conf /etc/httpd/conf.modules.d/10-wsgi.conf && \
|
|
sudo cp /opt/rh/httpd24/root/usr/lib64/httpd/modules/mod_rh-python36-wsgi.so /etc/httpd/modules/ && \
|
|
ln -s /bin/true /usr/bin/a2enmod && \
|
|
sed -i -e 's/raise ImproperlyConfigured..mysqlclient 1.3.13 or newer is required.*/pass/' /var/lib/openstack/lib/python3.6/site-packages/django/db/backends/mysql/base.py && \
|
|
sed -i -e '/query.decode.errors=.replace../s/decode/encode/' /var/lib/openstack/lib/python3.6/site-packages/django/db/backends/mysql/operations.py && \
|
|
sed -i 's/Listen 80/#Listen 80/' /etc/httpd/conf/httpd.conf \
|
|
"
|
|
PYTHON3=yes
|
|
|