Removed dlib --yes flag, as per #122
This commit is contained in:
parent
8537366154
commit
f9abedef95
1 changed files with 0 additions and 18 deletions
18
debian/postinst
vendored
18
debian/postinst
vendored
|
|
@ -159,24 +159,6 @@ log("Building dlib")
|
||||||
|
|
||||||
cmd = ["sudo", "python3", "setup.py", "install"]
|
cmd = ["sudo", "python3", "setup.py", "install"]
|
||||||
cuda_used = False
|
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
|
# Compile and link dlib
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue