Skip to content

Support building for different Python version #431

@tiran

Description

@tiran

In Fromager 0.31 and earlier, we assume that packages are built for the same Python version and interpreter as Fromager's Python. For example if Fromager is installed in a Python 3.11 virtual env, then all packages are built for Python 3.11.

Fromager should be able to build a package for another Python interpreter, e.g.

fromager --python-interpreter=/usr/bin/python3.12 ...

I think all it takes is to replace sys.executable with a command line parameter and get platform.python_version() from that interpreter. Then Fromager will create virtual envs for a different Python version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions