Skip to content

[Installer] Add python version option at runtime #7377

Closed

Description

@SchrodingersGat
  • Currently python version can be set with an environment variable
  • Should we expose it as a runtime flag for the installer?
  • Similar to SOURCE and PUBLISHER flags
  • Ref: Installer failures on Ubuntu 22.04 #7375

Activity

  1. added
    setup
    on May 31, 2024
  2. added this to the horizon milestone on May 31, 2024
  3. matmair commented on Jun 4, 2024

    @matmair
    Member

    Simply adding support to pass anything will not ensure it works. Multiple footguns would need fixing:

    • re-running the installer with a different python version will bork your instance in interesting and unpredictable ways (not fully sure why, pinning was a reliable fix)
    • customised environment installs (not in requirements or plugins) will need to transfer with updates to keep instances running - this is the main reason it is fixed right now
    • some sort of validation that the passed version is actually accessible on the OS and supported by InvenTree would be needed
  4. self-assigned this
    on Jun 13, 2024
  5. modified the milestones: horizon, 0.16.0 on Jun 13, 2024
  6. matmair commented on Jun 13, 2024

    @matmair
    Member

    This keeps coming up - I will patch the installer to just stop if the configured/detected python version is not found

  7. added a commit that references this issue on Jun 13, 2024
    f5792f6
  8. added a commit that references this issue on Jun 13, 2024
    5ad6ab3
  9. added a commit that references this issue on Jun 13, 2024
    f1dfced
  10. added a commit that references this issue on Jun 14, 2024
    960c27b
  11. added a commit that references this issue on Jun 24, 2024
    f102085
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

installersetup

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions