forked from Kramer84/pyfqmr-Fast-Quadric-Mesh-Reduction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (43 loc) · 1.46 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
47
48
49
from setuptools import setup
from setuptools.extension import Extension
# setup file based on:
# https://github.com/AshleySetter/HowToPackageCythonAndCppFuncs
# load version
with open("VERSION", 'r') as f_vers:
version = f_vers.read()
# load readme
with open('README.md') as f_read:
readme = f_read.read()
extensions = [
Extension(
name = "pyfqmr.Simplify", # name/path of generated .so file
sources = ["pyfqmr/Simplify.pyx"], # cython generated cpp file
language = "c++"), # tells python that the language of the extension is c++
]
setup(
name = "pyfqmr",
version = version,
description = "cython wrapper around C++ library for fast triangular mesh reduction",
author = "kramer84",
url = "https://github.com/Kramer84/pyfqmr-Fast-quadric-Mesh-Reduction",
license = 'MIT',
include_package_data = True,
packages =
[
'pyfqmr'
],
ext_modules = extensions,
long_description = readme,
install_requires = [],
classifiers =
[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Natural Language :: English"
],
long_description_content_type='text/markdown',
)