File fix-build.patch of Package uranium-lulzbot
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0a8db364..26294fa2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,11 +55,7 @@ CREATE_TRANSLATION_TARGETS()
if(NOT PYTHON_SITE_PACKAGES_DIR)
- if(APPLE OR WIN32)
- set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE STRING "Directory to install Python bindings to")
- else()
- set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE STRING "Directory to install Python bindings to")
- endif()
+ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE STRING "Directory to install Python bindings to")
set(URANIUM_INSTALL_MODULES_PATH ${CMAKE_INSTALL_DATADIR}/cmake-${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}/Modules/ )
set(URANIUM_INSTALL_PLUGINS_PATH lib/uranium)
else()
diff --git a/plugins/ConsoleLogger/ConsoleLogger.py b/plugins/ConsoleLogger/ConsoleLogger.py
index 2c408277..39abc0c0 100644
--- a/plugins/ConsoleLogger/ConsoleLogger.py
+++ b/plugins/ConsoleLogger/ConsoleLogger.py
@@ -23,7 +23,7 @@ class ConsoleLogger(LogOutput):
def __init__(self):
super().__init__()
self._logger = logging.getLogger(self._name) #Create python logger
- self._logger.setLevel(logging.DEBUG)
+# self._logger.setLevel(logging.DEBUG)
stream_handler = logging.StreamHandler() # Log to stream
stream_handler.setFormatter(logging_formatter)
self._logger.addHandler(stream_handler)
diff --git a/plugins/FileLogger/FileLogger.py b/plugins/FileLogger/FileLogger.py
index 065e95d3..e4739430 100644
--- a/plugins/FileLogger/FileLogger.py
+++ b/plugins/FileLogger/FileLogger.py
@@ -12,7 +12,7 @@ class FileLogger(LogOutput):
def __init__(self, file_name):
super().__init__()
self._logger = logging.getLogger(self._name) # Create python logger
- self._logger.setLevel(logging.DEBUG)
+# self._logger.setLevel(logging.DEBUG)
# Do not try to save to the app dir as it may not be writeable or may not be the right
# location to save the log file. Instead, try and save in the settings location since