Skip to content
  • Moisés López | ❖ Vauxoo - https://www.vauxoo.com/'s avatar
    [FIX] CI: Fix "setup.py install is deprecated. Use build" · c0087bac
    The last CI build has an error and it didn't deploy the package to pypi
    
    The error is the following one:
    
        /usr/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
    
    We are using `build` package and it was tested with the same docker image
    
    It is working well
    
    Also, it is fixing the following install build error:
    
        docker run -it --rm quay.io/vauxoo/dockerv:latest pip install -q build
            ERROR: Cannot uninstall 'pep517'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
    
    Fixed using ignore-installed parameter:
    
        docker run -it --rm quay.io/vauxoo/dockerv:latest pip install -q --ignore-installed build
            Package installed
    c0087bac
Validating GitLab CI configuration… Learn more