[Build] Pin the toposort version to 1.7 in python2 (#13979)

Why I did it
Fix the docker-base-stretch build issue in nephos platform.

Collecting supervisord-dependent-startup==1.4.0
  Downloading d386c3d2cf/supervisord_dependent_startup-1.4.0-py2.py3-none-any.whl
Collecting toposort>=1.5 (from supervisord-dependent-startup==1.4.0)
  Downloading 44e51b4216/toposort-1.9.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-build-LnROQE/toposort/setup.py'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-LnROQE/toposort/

The other platforms have been upgraded to docker-base-buster, not impacted.

How I did it
Pin the toposort version to 1.7, the package supervisord-dependent-startup has dependency on it.
The toposort>=1.8 only for python3, is not applicable to python2.
This commit is contained in:
xumia 2023-02-25 07:33:23 +08:00 committed by GitHub
parent 09ce5ec7b9
commit 8636494c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ RUN pip install j2cli
RUN pip install supervisor>=3.4.0 RUN pip install supervisor>=3.4.0
# Add support for supervisord to handle startup dependencies # Add support for supervisord to handle startup dependencies
RUN pip install supervisord-dependent-startup==1.4.0 RUN pip install supervisord-dependent-startup==1.4.0 toposort==1.7
RUN mkdir -p /etc/supervisor /var/log/supervisor RUN mkdir -p /etc/supervisor /var/log/supervisor