mirror of
https://github.com/collabora/libsurvive.git
synced 2026-08-04 00:51:21 -04:00
31 lines
1.4 KiB
Python
31 lines
1.4 KiB
Python
from setuptools import dist, find_packages
|
|
dist.Distribution().fetch_build_eggs(['wheel', 'cmake_setuptools'])
|
|
|
|
dist.Distribution().fetch_build_eggs(['cmake_setuptools', 'scikit-build'])
|
|
|
|
from skbuild import setup
|
|
import os
|
|
import subprocess
|
|
|
|
this_directory = os.path.abspath(os.path.dirname(__file__))
|
|
with open(os.path.join(this_directory, 'README.md'), encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
|
|
version = subprocess.check_output(["git", "describe", "--tags", "--long"]).strip().decode('utf-8').replace("-", ".")[1:]
|
|
version = version[:version.rfind("g")-1]
|
|
|
|
setup(name='pysurvive',
|
|
version=version,
|
|
long_description=long_description,
|
|
long_description_content_type='text/markdown',
|
|
description='Libsurvive is a set of tools and libraries that enable 6 dof tracking on lighthouse and vive based systems that is completely open source and can run on any device. It currently supports both SteamVR 1.0 and SteamVR 2.0 generation of devices and should support any tracked object commercially available.',
|
|
url='https://github.com/cntools/libsurvive',
|
|
packages=['pysurvive'],
|
|
package_dir={'pysurvive': 'bindings/python/pysurvive'},
|
|
include_package_data=False,
|
|
license='MIT',
|
|
cmake_args=['-DPYTHON_GENERATED_DIR="'+ os.path.dirname(os.path.abspath(__file__))+'/bindings/python/pysurvive/"',
|
|
"-DBUILD_APPLICATIONS=OFF",
|
|
"-DLIB_INSTALL_DIR=bindings/python/pysurvive/"]
|
|
)
|