forked from yannlabb/cosypose
-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsetup.py
More file actions
29 lines (26 loc) · 694 Bytes
/
setup.py
File metadata and controls
29 lines (26 loc) · 694 Bytes
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
import os
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CppExtension
from os import path
here = path.abspath(path.dirname(__file__))
# Use correct conda compiler used to build pytorch
os.environ['CXX'] = os.environ.get('GXX', '')
setup(
name='cosypose',
version='1.0.0',
description='CosyPose',
packages=find_packages(),
ext_modules=[
CppExtension(
name='cosypose_cext',
sources=[
'cosypose/csrc/cosypose_cext.cpp'
],
extra_compile_args=['-O3'],
verbose=True
)
],
cmdclass={
'build_ext': BuildExtension
}
)