From 5d68a68a54aea22bb030389e89979f59d2ea6a75 Mon Sep 17 00:00:00 2001 From: TheMarpe Date: Tue, 31 Oct 2023 15:58:48 +0100 Subject: [PATCH] Removed custom libclang for rtd build --- docs/source/conf.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 2fe38a392..44d44c233 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -22,12 +22,13 @@ subprocess.check_call(['make', 'install'], cwd=tmpdir+'/libusb-1.0.24') env['PATH'] = tmpdir+'/libusb/include:'+tmpdir+'/libusb/lib'+':'+env['PATH'] -# libclang -subprocess.check_call(['wget', 'https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/misc/libclang-11_manylinux2014_x86_64.tar.xz'], cwd=tmpdir) -subprocess.check_call(['mkdir', '-p', 'libclang'], cwd=tmpdir) -subprocess.check_call(['tar', 'xf', 'libclang-11_manylinux2014_x86_64.tar.xz', '-C', tmpdir+'/libclang/'], cwd=tmpdir) -env['LIBCLANG_PATH'] = tmpdir+'/libclang/usr/lib/llvm-11/lib/libclang.so.1' -env['LLVM_DIR_PATH'] = tmpdir+'/libclang/usr/lib/llvm-11/' +# Not needed anymore, part of pip install that carries the binary itself also +# # libclang +# subprocess.check_call(['wget', 'https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/misc/libclang-11_manylinux2014_x86_64.tar.xz'], cwd=tmpdir) +# subprocess.check_call(['mkdir', '-p', 'libclang'], cwd=tmpdir) +# subprocess.check_call(['tar', 'xf', 'libclang-11_manylinux2014_x86_64.tar.xz', '-C', tmpdir+'/libclang/'], cwd=tmpdir) +# env['LIBCLANG_PATH'] = tmpdir+'/libclang/usr/lib/llvm-11/lib/libclang.so.1' +# env['LLVM_DIR_PATH'] = tmpdir+'/libclang/usr/lib/llvm-11/' # Build library and generate actual conf.py subprocess.run(["cmake -P ../ci.cmake"], cwd=cwd, shell=True, check=True, env=env)