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

Support building for different Python version #431

Open
tiran opened this issue Sep 18, 2024 · 0 comments · May be fixed by #432
Open

Support building for different Python version #431

tiran opened this issue Sep 18, 2024 · 0 comments · May be fixed by #432

Comments

@tiran
Copy link
Collaborator

tiran commented Sep 18, 2024

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.

tiran added a commit to tiran/fromager that referenced this issue Sep 18, 2024
Fromager now support building wheels for a different Python interpreter:

```shell
fromager --python-interpreter=/path/to/python ...
```

Fixes: python-wheel-build#431
Signed-off-by: Christian Heimes <[email protected]>
@tiran tiran linked a pull request Sep 18, 2024 that will close this issue
tiran added a commit to tiran/fromager that referenced this issue Sep 18, 2024
Fromager now support building wheels for a different Python interpreter:

```shell
fromager --python-interpreter=/path/to/python ...
```

Fixes: python-wheel-build#431
Signed-off-by: Christian Heimes <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant