This repository has been archived by the owner on Jan 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (37 loc) · 1.61 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from setuptools import setup
import io
from pathlib import Path
# This part is to create bdist_wheel to let setuptools know that this package is not pure python.
# reference: https://stackoverflow.com/questions/45150304/how-to-force-a-python-wheel-to-be-platform-specific-when-building-it
try:
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
class bdist_wheel(_bdist_wheel):
def finalize_options(self):
_bdist_wheel.finalize_options(self)
self.root_is_pure = False
except ImportError:
bdist_wheel = None
here = Path(__file__).parent.resolve()
long_description = io.open("README.md", encoding="utf-8").read()
setup(
name="pyrgbd",
version="0.1.0",
description="Library for reading and writing RGBD videos",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/telegie/pyrgbd",
license="MIT",
packages=['pyrgbd'],
install_requires=["cffi", "numpy", "opencv-python", "pyglm"],
# For files to be copied by package_data, they should exist inside the corresponding package's directory.
package_data={
'pyrgbd': ["_librgbd.cpython-39-darwin.so",
"_librgbd.cpython-310-darwin.so",
f"{here}/librgbd/install/arm64-mac/bin/librgbd.dylib",
f"{here}/librgbd/install/x64-mac/bin/librgbd.dylib",
"_librgbd.cpython-39-x86_64-linux-gnu.so",
"_librgbd.cpython-310-x86_64-linux-gnu.so",
f"{here}/librgbd/install/x64-linux/bin/librgbd.so"]
},
cmdclass={'bdist_wheel': bdist_wheel}
)