Skip to main content

A module to handle module compatibility between free-threading and regular Python builds

Project description

Modules for free-threading built python

Description

See https://github.com/python/cpython/pull/135550, PEP779. Now the free-threading is not a experimental feature anymore. However, the .pyd files are different between two executable. This repository is make sure that if the .pyd files are not the files for the executable version, it will be reinstall for the currently version.

Note

Make sure that the packages have at least a version that is compatible with the current python executable version. The cp313-cp313 should be used for the normal, while the cp313-cp313t should be used for the free-threading.

Usage

pip install modules_for_freethreading

The code below is an example of using the numpy module. If the numpy module is not compatible with the current python executable version, it will be reinstalled for the corrently version.

import modules_for_freethreading
modules_for_freethreading.add_module("numpy"[, module_version="2.2.0"])
import numpy

Note

If the module's name is different from the install name, you should set it :

import modules_for_freethreading
modules_for_freethreading,add_module("pytorch")
modules_for_freethreading.add_other_name("pytorch", "torch")
import torch

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modules_for_freethreading-0.3.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modules_for_freethreading-0.3.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file modules_for_freethreading-0.3.0.tar.gz.

File metadata

File hashes

Hashes for modules_for_freethreading-0.3.0.tar.gz
Algorithm Hash digest
SHA256 0e73218cdc23f4b5d8a3031048910fc01a100e350cc1f8c68b5173f64ba3512f
MD5 8df6174da0013a1ddd26d3dac5148446
BLAKE2b-256 f3d61332b1ee67662832509c7ed809ab875981f967b07b9237254331abf81474

See more details on using hashes here.

File details

Details for the file modules_for_freethreading-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for modules_for_freethreading-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4242f0b874b91cdc5c5dfa1c03eb38820526cdc7ab19ec85c85661cc1f6e795d
MD5 221eb8c34e1d2e998d3282b9841ad4d0
BLAKE2b-256 39bbb6a8b9b8dee6ec137457174336eac41394082448d5de5a51bbd508c6121b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page