forked from sxyu/nerfvis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (57 loc) · 1.65 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import logging
from distutils.errors import (
CCompilerError,
DistutilsExecError,
DistutilsPlatformError,
)
import numpy
from setuptools import Extension, setup
from setuptools.command.build_ext import build_ext
ext_errors = (
CCompilerError,
DistutilsExecError,
DistutilsPlatformError,
IOError,
SystemExit,
)
__version__ = None
exec(open("nerfvis/version.py", "r").read())
logging.basicConfig()
log = logging.getLogger(__file__)
cython_args = {}
cython_args["ext_modules"] = [
Extension(
"nerfvis.utils._rotation",
["nerfvis/utils/_rotation.c"],
include_dirs=[numpy.get_include()],
)
]
cython_args["cmdclass"] = {"build_ext": build_ext}
try:
setup(
name="nerfvis",
version=__version__,
author="Alex Yu",
author_email="[email protected]",
description="NeRF visualization library",
long_description="NeRF visualization library based on PlenOctrees. See https://github.com/sxyu/nerfvis",
packages=["nerfvis"],
include_package_data=True,
package_data={"nerfvis": ["index.html"]},
**cython_args,
)
except ext_errors as ex:
log.warn(ex)
log.warn("The C extension could not be compiled")
setup(
name="nerfvis",
version=__version__,
author="Alex Yu",
author_email="[email protected]",
description="NeRF visualization library",
long_description="NeRF visualization library based on PlenOctrees. See https://github.com/sxyu/nerfvis",
packages=["nerfvis"],
include_package_data=True,
package_data={"nerfvis": ["index.html"]},
cmdclass={},
)