Skip to content

Commit

Permalink
Removed custom libclang for rtd build
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Oct 31, 2023
1 parent d3dc1d6 commit 5d68a68
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d68a68

Please sign in to comment.