Skip to content

Provide a source distribution for non-binary builds #77

@dmwelch

Description

@dmwelch

I'm trying to install Chalice in a Docker container (python:3.9.13-buster) without binary packages because binaries are a security issue in our system (especially with packages that record keystrokes! 😨 ).

I'm running the command below that leads me to believe there is not a source distribution available in Pypi.

pip install -r /app/requirements.txt --no-binary :all:

returns an error:

Collecting readchar==3.0.5
  Downloading readchar-3.0.5.tar.gz (6.2 kB)
  Preparing metadata (setup.py) ... done
  WARNING: Requested readchar==3.0.5 from https://files.pythonhosted.org/packages/8d/ff/33df88cee8ab693302288fc7d2983e561bf7d78439b844407c976d52fa73/readchar-3.0.5.tar.gz#sha256=d1f5b71e98c37b7f3b695fba9db978ab84f4f8a0ed879653d83e1d90a4c482c0 (from -r /app/requirements.txt (line 85)), but installing version 2.0.1
Discarding https://files.pythonhosted.org/packages/8d/ff/33df88cee8ab693302288fc7d2983e561bf7d78439b844407c976d52fa73/readchar-3.0.5.tar.gz#sha256=d1f5b71e98c37b7f3b695fba9db978ab84f4f8a0ed879653d83e1d90a4c482c0 (from https://pypi.org/simple/readchar/): Requested readchar==3.0.5 from https://files.pythonhosted.org/packages/8d/ff/33df88cee8ab693302288fc7d2983e561bf7d78439b844407c976d52fa73/readchar-3.0.5.tar.gz#sha256=d1f5b71e98c37b7f3b695fba9db978ab84f4f8a0ed879653d83e1d90a4c482c0 (from -r /app/requirements.txt (line 85)) has inconsistent version: filename has '3.0.5', but metadata has '2.0.1'
ERROR: Could not find a version that satisfies the requirement readchar==3.0.5 (from versions: 0.2-test1, 0.2-test1.linux-i686, 0.2-test2, 0.2-test2.linux-i686, 0.2.linux-i686, 0.0.8, 0.0.9, 0.2rc0, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5)
ERROR: No matching distribution found for readchar==3.0.5
WARNING: You are using pip version 22.0.4; however, version 22.1.2 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.

Running the same command without --no-binary :all: succeeds in the installation (in a fresh container).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions