setup.py
Go to the documentation of this file.
1 from setuptools import setup, find_packages
2 from setuptools.dist import Distribution
3 
4 # _version.py should be generated by running find_librs_version.py and copied to pyrealsense2 folder
5 from pyrealsense2._version import __version__
6 
7 import os
8 import io
9 
10 package_name = "pyrealsense2"
11 package_data = {}
12 
13 print("version = ", __version__)
14 
16  with io.open('README.rst', encoding="utf-8") as f:
17  return f.read()
18 
19 if os.name == 'posix':
20  package_data[package_name] = ['*.so']
21 else:
22  package_data[package_name] = ['*.pyd', '*.dll']
23 
24 
25 # This creates a list which is empty but returns a length of 1.
26 # Should make the wheel a binary distribution and platlib compliant.
27 class EmptyListWithLength(list):
28  def __len__(self):
29  return 1
30 
31 
32 setup(
33  name=package_name,
34  version=__version__,
35  author='Intel(R) RealSense(TM)',
36  author_email='realsense@intel.com',
37  url='https://github.com/IntelRealSense/librealsense',
38  scripts=['examples/align-depth2color.py',
39  'examples/export_ply_example.py',
40  'examples/opencv_viewer_example.py',
41  'examples/python-rs400-advanced-mode-example.py',
42  'examples/python-tutorial-1-depth.py'
43  ],
44  license='Apache License, Version 2.0',
45  description='Python Wrapper for Intel Realsense SDK 2.0.',
46  long_description=load_readme(),
47  install_requires=[],
48  classifiers=[
49  'Development Status :: 3 - Alpha',
50  'Environment :: Console',
51  'Intended Audience :: Developers',
52  'Intended Audience :: Education',
53  'Intended Audience :: Science/Research',
54  'License :: OSI Approved :: Apache Software License',
55  'Operating System :: Microsoft :: Windows',
56  'Operating System :: POSIX',
57  'Operating System :: Unix',
58  'Programming Language :: Python',
59  'Programming Language :: Python :: 2',
60  'Programming Language :: Python :: 2.7',
61  'Programming Language :: Python :: 3',
62  'Programming Language :: Python :: 3.6',
63  'Programming Language :: Python :: 3.7',
64  'Programming Language :: Python :: 3.8',
65  'Programming Language :: Python :: 3.9',
66  'Topic :: Multimedia :: Video',
67  'Topic :: Scientific/Engineering',
68  'Topic :: Scientific/Engineering :: Human Machine Interfaces',
69  'Topic :: Scientific/Engineering :: Image Recognition',
70  'Topic :: Software Development',
71  'Topic :: Software Development :: Libraries :: Application Frameworks'
72  ],
73  packages=find_packages(exclude=['third_party', 'docs', 'examples']),
74  include_package_data=True,
75  ext_modules=EmptyListWithLength(),
76  package_data=package_data
77 )
def load_readme()
Definition: setup.py:15
static std::string print(const transformation &tf)


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:41