forked from etiennedub/pyk4a
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (22 loc) · 917 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from setuptools import setup, Extension
# Bypass import numpy before running install_requires
# https://stackoverflow.com/questions/54117786/add-numpy-get-include-argument-to-setuptools-without-preinstalled-numpy
class get_numpy_include:
def __str__(self):
import numpy
return numpy.get_include()
module = Extension('k4a_module',
sources=['pyk4a/pyk4a.cpp'],
include_dirs=[get_numpy_include()],
libraries=['k4a'])
setup(name='pyk4a',
version='0.3.1',
description='Python wrapper over Azure Kinect SDK',
license='GPL-3.0',
author='Etienne Dubeau',
install_requires=['numpy'],
author_email='[email protected]',
url='https://github.com/etiennedub/pyk4a/',
download_url='https://github.com/etiennedub/pyk4a/archive/0.2.tar.gz',
packages=['pyk4a'],
ext_modules=[module])