gimme-aws-creds
gimme-aws-creds copied to clipboard
Docker build fails with error installing futures
Expected Behavior
docker build . in root of cloned repo should succeed.
Current Behavior
Build fails with this message:
cargo rustc --lib --manifest-path src/rust/Cargo.toml --features pyo3/extension-module pyo3/abi3-py36 --release -- --crate-type cdylib
This backport is meant only for Python 2.
It does not work on Python 3, and Python 3 users do not need it as the concurrent.futures package is available in the standard library.
For projects that work on both Python 2 and 3, the dependency needs to be conditional on the Python version, like so:
extras_require={':python_version == "2.7"': ['futures']}
error: Setup script exited with 1
The command '/bin/sh -c apk --update add $PACKAGES && pip install --upgrade pip setuptools-rust && python setup.py install && apk del --purge $PACKAGES' returned a non-zero code: 1
Possible Solution
Manually installing futures by adding pip install futures
before the python setup.py
command in the Dockerfile allows the latter to succeed with no error.
Steps to Reproduce (for bugs)
- git clone git://github.com/Nike-Inc/gimme-aws-creds && cd gimme-aws-creds && git checkout v2.4.1
- docker build .
Context
Trying to build functional docker image for running g-a-c
Your Environment
- App Version used: 2.4.1
- Environment name and version: Docker Desktop for Mac 3.0, engine version 20.10.0,
- Operating System and version: macOS Catalina 10.15.7