-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
38 lines (33 loc) · 879 Bytes
/
setup.py
File metadata and controls
38 lines (33 loc) · 879 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
30
31
32
33
34
35
36
37
38
#!/usr/bin/env python
# encoding: utf-8
from sys import platform
import numpy as np
from Cython.Build import cythonize
from setuptools import Extension, find_packages, setup
extra_link_args = []
if platform != "darwin":
extra_link_args.append("-lgomp")
ext = Extension(
"text3daug.RayTracerCython",
sources=["./text3daug/raytracer/RayTracerCython.pyx"],
language="c++",
include_dirs=[np.get_include()],
extra_compile_args=[
"-std=c++14",
"-O3",
# "-fopenmp",
"-msse3",
"-fPIC",
"-march=native",
],
)
setup(
name="text3daug",
version="0.0",
description="Text3DAug for LiDAR pointclouds.",
author="Laurenz Reichardt and Luca Uhr",
url="https://github.com/CeMOS-IS",
packages=find_packages(),
install_requires=["numpy"],
ext_modules=cythonize(ext, language_level=3),
)