-
Notifications
You must be signed in to change notification settings - Fork 26
/
setup-macos-arm.py
executable file
·60 lines (56 loc) · 2 KB
/
setup-macos-arm.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
import setuptools
import os
import platform
import sys
import subprocess
import numpy as np
def read(fname):
with open(os.path.join(os.path.dirname(__file__), fname), 'rt') as f:
return f.read()
src_dir = './src'
setuptools.setup(
name='DracoPy',
version='1.4.1',
description = 'Python wrapper for Google\'s Draco Mesh Compression Library',
author = 'Manuel Castro, William Silversmith :: Contributors :: Fatih Erol, Faru Nuri Sonmez, Zeyu Zhao, Denis Riviere',
author_email = '[email protected], [email protected]',
url = 'https://github.com/seung-lab/DracoPy',
long_description=read('README.md'),
long_description_content_type="text/markdown",
license = "License :: OSI Approved :: Apache Software License",
setup_requires=['cython'],
install_requires=['numpy'],
ext_modules=[
setuptools.Extension(
'DracoPy',
sources=[ os.path.join(src_dir, 'DracoPy.pyx') ],
depends=[ os.path.join(src_dir, 'DracoPy.h') ],
language='c++',
include_dirs = [
'./draco/src/',
np.get_include(),
],
extra_compile_args=[
'-std=c++17','-O3', '-stdlib=libc++'
],
extra_link_args=[ "-ldraco" ],
)
],
classifiers=[
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Operating System :: POSIX",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Topic :: Utilities",
]
)