-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
43 lines (39 loc) · 1.25 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
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Dec 3 13:37:26 2020
@author: cjburke
Create the cython binaries for rubik_opt in local directory
python setup.py build_ext --inplace
"""
from setuptools import setup
from setuptools.extension import Extension
from Cython.Build import cythonize
import numpy
extensions = [
Extension(
"rubik_cython_moves",
["rubik_cython_moves.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args = ["-O3"]
),
Extension(
"rubik_cython_moves_12p7",
["rubik_cython_moves_12p7.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args = ["-O3"]
),
Extension(
"rubik_cython_roll_buffdq_solve",
["rubik_cython_roll_buffdq_solve.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args = ["-O3"]
),
Extension(
"rubik_cython_roll_buffdq_solve_MP",
["rubik_cython_roll_buffdq_solve_MP.pyx"],
include_dirs=[numpy.get_include()],
extra_compile_args = ["-O3"]
)
]
setup(ext_modules=cythonize(extensions))