diff --git a/debian/postinst b/debian/postinst index 6da42db..0f4e021 100755 --- a/debian/postinst +++ b/debian/postinst @@ -159,24 +159,6 @@ log("Building dlib") cmd = ["sudo", "python3", "setup.py", "install"] cuda_used = False -flags = "" - -# Get the CPU details -with open("/proc/cpuinfo") as info: - for line in info: - if "flags" in line: - flags = line - break - -# Use the most efficient instruction set the CPU supports -if "avx" in flags: - cmd += ["--yes", "USE_AVX_INSTRUCTIONS"] -elif "sse4" in flags: - cmd += ["--yes", "USE_SSE4_INSTRUCTIONS"] -elif "sse3" in flags: - cmd += ["--yes", "USE_SSE3_INSTRUCTIONS"] -elif "sse2" in flags: - cmd += ["--yes", "USE_SSE2_INSTRUCTIONS"] # Compile and link dlib try: