Xavier de Gaye <xdeg...@gmail.com> added the comment:

Steps to reproduce (requires docker support, about 500 MB and only few minutes):

1. Create the file named 'Dockerfile' whose content is:

####################################
FROM ubuntu

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
    bash \
    build-essential \
    git \
    sed \
    && rm -rf /var/lib/apt/lists/*

# Run as user 'pydev'.
RUN groupadd pydev && useradd --no-log-init -m -g pydev pydev
USER pydev:pydev
ENV HOME=/home/pydev
WORKDIR $HOME
####################################

2. Create the ubuntu:bpo-36544 image

    $ docker build --tag=ubuntu:bpo-36544 .

3. Run the image and enters bash as user pydev

    $ docker run -it ubuntu:bpo-36544

    As user pydev, build python and import hashlib:

        pydev@5a8ffc33955d:~$ git clone -b master --single-branch --depth 1 
https://github.com/python/cpython.git
        pydev@70e0722a76f2:~$ cd cpython/ && ./configure && make
        pydev@70e0722a76f2:~/cpython$ ./python -c "import hashlib"

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36544>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to