python-nss was fixed to work with wheel

This work around is no longer needed

Change-Id: Ifff9f3be35e14d87b49a7cbb5a794bd90c8981dd
This commit is contained in:
Sam Yaple 2017-09-20 15:10:49 -04:00
parent d2f4cbf345
commit d05002b02d
3 changed files with 0 additions and 24 deletions

View File

@ -49,14 +49,6 @@ RUN set -x \
&& python -m virtualenv /builder \
&& pip install -U pip \
&& pip install -U wheel setuptools \
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
&& mkdir /tmp/python-nss \
&& tar xf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
# NOTE(SamYaple): end bug workaround
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
uwsgi \
&& yum history -y undo 4 5 \

8
debian/Dockerfile vendored
View File

@ -43,14 +43,6 @@ RUN set -x \
&& python -m virtualenv /builder \
&& pip install -U pip \
&& pip install -U wheel setuptools \
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
&& mkdir /tmp/python-nss \
&& tar xf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
# NOTE(SamYaple): end bug workaround
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
uwsgi \
&& apt-get purge -y --auto-remove \

View File

@ -43,14 +43,6 @@ RUN set -x \
&& python -m virtualenv /builder \
&& pip install -U pip \
&& pip install -U wheel setuptools \
# NOTE(SamYaple): There is a bug with python-nss, this is a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1389739
&& sed -i '/dogtag-pki/d' /root/packages/global-requirements.txt \
&& pip download -d /tmp -c /root/packages/upper-constraints.txt python-nss \
&& mkdir /tmp/python-nss \
&& tar xf /tmp/python-nss-*.tar.bz2 -C /tmp/python-nss --strip-components=1 \
&& sed -i "s/if arg in ('-d', '--debug'):/if arg == '--debug':/g" /tmp/python-nss/setup.py \
&& pip wheel -w /root/packages/ $(grep dogtag-pki /root/packages/upper-constraints.txt) /tmp/python-nss/ \
# NOTE(SamYaple): end bug workaround
&& pip wheel -w /root/packages/ -r /root/packages/global-requirements.txt -c /root/packages/upper-constraints.txt \
uwsgi \
&& apt-get purge -y --auto-remove \