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("jpype")
modules_for_freethreading.add_other_name("jpype", "jpype1")
import jpype

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.2.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.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for modules_for_freethreading-0.3.2.tar.gz
Algorithm Hash digest
SHA256 4b5b55177d3a609a38c195c83d8af9e41047c3ec24b264fa8c96d3b7d190aac0
MD5 d7aa9b014a104e126e09e84cfa6eb777
BLAKE2b-256 ca99474672e4325b2afff4a18d6f1c8bbe6acfd12a9eab450ea0de82d832edc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for modules_for_freethreading-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7b5690f28af0622394944e29caa9b27109ce1fc235cc290c63b2b8cd8a7e91a1
MD5 812a3f277e64ee490d775d6a36fa6e41
BLAKE2b-256 66e2c4de4a2952e8cb356e235dd1381281d14f7e844fd96ce6a39e813f14c5f7

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