Check python-lzma availability during installation

parent 09a3f06e
...@@ -199,6 +199,16 @@ install_data_files = [] ...@@ -199,6 +199,16 @@ install_data_files = []
for data_dir in ["magic", "config", "plugins", "modules", "core"]: for data_dir in ["magic", "config", "plugins", "modules", "core"]:
install_data_files.append("%s%s*" % (data_dir, os.path.sep)) install_data_files.append("%s%s*" % (data_dir, os.path.sep))
# Verify that the lzma-module is available
try:
import lzma
except ImportError:
try:
from backports import lzma
except:
print("Error: python LZMA-module not found, please install before proceeding")
sys.exit(-1)
# Install the module, script, and support files # Install the module, script, and support files
setup(name = MODULE_NAME, setup(name = MODULE_NAME,
version = "2.1.2b", version = "2.1.2b",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment