Skip to content

a gcc problem of pip install in alpine and slim #318

@ziserendexin

Description

@ziserendexin

first, it's ok in 3.7.0-stretch 17453243214e. even i upgrade pip 10 => 18.
docker_py_about_gcc_promblem.txt

and it appear in alpine 4ba354cfad11 and slim 721e295edabf.

error is :
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-yu7dnntc/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-lqpautx_/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-yu7dnntc/greenlet/

my dockerfile is
FROM python:3.7.0-stretch WORKDIR /usr/mabo/ COPY ./requirements.txt ./ RUN pip install -r requirements.txt \ && rm requirements.txt

and requirements is :
zope.interface constantly incremental attrs Automat twisted pymodbus3 pendulum redis influxdb msgpack-python toml python-etcd falcon waitress greenlet gevent logbook

in alpine,it's error in install greenlet.
in slim ,it's same.

and in alpine, only pip greenlet, also error.

but when i change dockerfile ,and use it in slim
RUN pip install greenlet RUN pip install -r mabopython_requirements_alpine.txt \ && rm mabopython_requirements_alpine.txt

error is different:
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-_xu8ni82/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-_yicobwz/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-_xu8ni82/twisted/

not greenlet is twisted..Orz

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions