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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for modules_for_freethreading-0.3.1.tar.gz
Algorithm Hash digest
SHA256 2addc3358e43e87037a15222e35073e107f58baa352093126ce6fa76420a1a7d
MD5 653c8c50fb2e0282e81f95364d3de20f
BLAKE2b-256 3177d744c4cd4be9596a19fe481a57b325c4322022e5854699c1dc8d18f936df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for modules_for_freethreading-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d140f1134e94a92967cfe5a7e1b79f0a3df419d74f23abe2c6b03d015f1a20f
MD5 ece89f5ef0356adffbed4a6ca53f9b02
BLAKE2b-256 b32d5e93b97de07c1912e0d75ea75be4bc524969d0b9d6c727e491fbc225b554

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