forked from sxyu/nerfvis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
46 lines (42 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
42
43
44
45
46
import logging
from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext
from Cython.Build import cythonize
from distutils.errors import CCompilerError, DistutilsExecError, DistutilsPlatformError
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"] = cythonize(Extension("nerfvis.utils._rotation",
["nerfvis/utils/_rotation.pyx"]))
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': ['volrend.zip']},
**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': ['volrend.zip']},
cmdclass = {}
)