This library is a backport for Python 2 of the Python 3 functools standard library. We want to use functools.lru_cache for caching opt_einsum results. One other option is adding backports/functools_lru_cache. But functools also has other components which might be useful. PiperOrigin-RevId: 257299040
19 lines
437 B
Plaintext
19 lines
437 B
Plaintext
# Description:
|
|
# functools32 provides a backport of the functools module for Python 2.
|
|
|
|
licenses(["notice"]) # Python 2.0
|
|
|
|
exports_files(["LICENSE"])
|
|
|
|
py_library(
|
|
name = "functools32",
|
|
srcs = [
|
|
"functools32/__init__.py",
|
|
"functools32/_dummy_thread32.py",
|
|
"functools32/functools32.py",
|
|
"functools32/reprlib32.py",
|
|
],
|
|
srcs_version = "PY2AND3",
|
|
visibility = ["//visibility:public"],
|
|
)
|