Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Several pip fixes for Python hydration #186

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Jan 10, 2024

  1. Invoke pip using python3 -m pip rather than pip3

    This is closer to the recommended way to invoke pip according to the
    [latest pip documentation](https://pip.pypa.io/en/stable/getting-started/).
    
    The reason why this invocation is more robust is that it only
    requires the Python interpreter itself to be on the PATH, and it is
    robust to the bin directory corresponding to site-packages being
    omitted from the PATH (usually by accident).
    lpsinger committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    047b88d View commit details
    Browse the repository at this point in the history
  2. Use pip --version, not pip list, to test for working pip

    `pip list` can be very time consuming if there are many packages
    installed. `pip --version` is fast regardless.
    lpsinger committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    99c4752 View commit details
    Browse the repository at this point in the history
  3. Permit installing Python packages from source if host and target match

    Some Python packages _must_ be installed from source: either PyPI
    only holds source distributions of them, or lacks wheels for the
    target platform. If the host platform matches the target Lambda
    platform, then permit installation of Python packages from source.
    lpsinger committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    77c34c3 View commit details
    Browse the repository at this point in the history