File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363import os
6464import importlib
6565
66- # Experimental ability to use tibs for core operations instead of bitarray.
67- # Tibs's core is written in Rust and is still in beta. Use the environment variable
68- # BITSTRING_USE_RUST_CORE=1 before importing the module to turn it on. The Rust core
69- # is not recommended for general use yet.
66+ # New ability to use tibs for core operations instead of bitarray.
67+ # Tibs is written in Rust and is still in beta. Use the environment variable
68+ # BITSTRING_USE_RUST_CORE=1 before importing the module to turn it on.
7069_env_core = os .getenv ('BITSTRING_USE_RUST_CORE' , '' ).strip ().lower ()
7170_USE_RUST_CORE = _env_core in ('1' , 'true' , 'yes' , 'on' )
7271if _USE_RUST_CORE :
73- try :
74- bitstore = importlib .import_module ('bitstring.bitstore_tibs' )
75- bitstore_helpers = importlib .import_module ('bitstring.bitstore_tibs_helpers' )
76- except Exception as e :
77- raise e
78- # raise ImportError("BITSTRING_USE_RUST_CORE is set, but the tibs library is unavailable.") from e
72+ bitstore = importlib .import_module ('bitstring.bitstore_tibs' )
73+ bitstore_helpers = importlib .import_module ('bitstring.bitstore_tibs_helpers' )
7974else :
8075 bitstore = importlib .import_module ('bitstring.bitstore_bitarray' )
8176 bitstore_helpers = importlib .import_module ('bitstring.bitstore_bitarray_helpers' )
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " bitstring"
7- version = " 4.4.0rc1 "
7+ version = " 4.4.0 "
88license = { text = " MIT" }
99authors = [
1010 { name =" Scott Griffiths" , email =" dr.scottgriffiths@gmail.com" },
You can’t perform that action at this time.
0 commit comments