diff --git a/Lib/init_cinderx.py b/Lib/init_cinderx.py deleted file mode 100644 index 0ae286f04e0..00000000000 --- a/Lib/init_cinderx.py +++ /dev/null @@ -1,22 +0,0 @@ -# ONLY USED FOR CINDERX DEVELOPMENT -# This file is deliberately not included in the set of deep-frozen bootstrap -# libraries so it can easily be excluded from the distribution to avoid -# attempting to initialize CinderX. This is desirable because this code imports -# importlib.util and some tests are surprised when they find this unexpectedly -# loaded as part of bootstrap. - -import importlib.util - -# `cinderx` is the Python module in fbcode/cinderx/PythonLib which wraps the -# `_cinderx` C++ extension in fbcode/cinderx/_cinderx.cpp. Both need to be -# available to load CinderX. -if not ( - importlib.util.find_spec("cinderx") is None - or importlib.util.find_spec("_cinderx") is None -): - try: - import cinderx - - cinderx.init() - except Exception as e: - raise RuntimeError("Failed to initialize CinderX module") from e