JackMcKew / pyinstaller-action-linux

Github Action for building executables with Pyinstaller for Linux
MIT License
28 stars 21 forks source link

pip fails installing packages due to incorrect python version #11

Open squigjess opened 2 years ago

squigjess commented 2 years ago

Describe the bug When this action attempts to install packages that require a later version of Python, pip fails, stopping the whole action.

To Reproduce Steps to reproduce the behavior:

  1. In the project's requirements.txt file, include a package that does not run on Python versions prior to 3.8 (e.g. nextcord).
  2. Attempt to run the workflow.

Expected behavior The action completes successfully.

Error message

ERROR: Could not find a version that satisfies the requirement nextcord==2.0.0a3 (from versions: none)
ERROR: No matching distribution found for nextcord==2.0.0a3

Additional context If there was a way to change which version of Python gets used, this would resolve the issue, as some projects only support the more recent versions of Python (e.g. my project expects 3.9 to be present).

JackMcKew commented 2 years ago

Related issue over on the sister repo: https://github.com/JackMcKew/pyinstaller-action-windows/issues/19

They both are sourced from the same dockerfile so the same solution may apply to both 👍

JackMcKew commented 1 year ago

Hi, could you please try using this branch and see if it solves this issue?

- name: Package Application
      uses: JackMcKew/pyinstaller-action-linux@python3.10
      with:
        path: src