forked from cihologramas/pyoptools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
49 lines (41 loc) · 1.5 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
#!/usr/bin/env python
import sys
from setuptools import setup, find_packages
from Cython.Build import cythonize
from Cython.Build.Dependencies import default_create_extension
import numpy
def create_extension(template, kwds: dict):
define_macros = kwds.get("define_macros", [])
if sys.platform in ("darwin", "win32"):
define_macros.append(("CYTHON_INLINE", ""))
kwds["define_macros"] = define_macros
return default_create_extension(template, kwds)
setup(
name="pyoptools",
version="0.1.1",
packages=find_packages(exclude=["tests"]),
scripts=["ipyoptools"],
package_data={
"pyoptools.raytrace.mat_lib": [
"data/glass/*",
"data/glass/*/*",
"data/glass/*/*/*",
"data/inorganic/*",
"data/inorganic/*/*",
"data/organic/*",
"data/organic/*/*",
"data/aliases.json",
],
"pyoptools.raytrace.library": [
"catalogs/*"],
},
author="Ricardo Amezquita Orozco",
author_email="ramezquitao@cihologramas.com",
description="Optical ray tracing simulation system",
license="GPLv3",
url="https://github.com/cihologramas/pyoptools/",
download_url="https://github.com/cihologramas/pyoptools/archive/v0.1.1.zip",
ext_modules=cythonize("pyoptools/**/*.pyx", language_level="2", create_extension=create_extension),
include_dirs=[numpy.get_include()],
install_requires=['numpy', 'scipy', 'imageio', 'PyYAML', 'matplotlib', 'ijson'],
)