-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
32 lines (25 loc) · 727 Bytes
/
setup.py
File metadata and controls
32 lines (25 loc) · 727 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
from setuptools import setup, find_packages, Extension
from os import path
import os
import numpy
def package_files(directory):
paths = []
for (pathhere, _, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", pathhere, filename))
return paths
extra_folders = [
"spatialgeometry/core",
]
extra_files = []
for extra_folder in extra_folders:
extra_files += package_files(extra_folder)
scene = Extension(
name="spatialgeometry.scene",
sources=["./spatialgeometry/core/scene.cpp"],
include_dirs=["./spatialgeometry/core/", numpy.get_include()],
)
setup(
package_data={"spatialgeometry": extra_files},
ext_modules=[scene],
)