-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
27 lines (24 loc) · 799 Bytes
/
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
from setuptools import setup, Extension, find_packages
import os
import shutil
import numpy as np
from Cython.Build import cythonize
from Cython.Distutils import build_ext
ext_modules = [
Extension(
"pylibde265.pyde265",
sources=["./src/pylibde265/pyde265.pyx"],
include_dirs=["./libde265/build/", "./libde265/libde265/", np.get_include()],
library_dirs=["./libde265/build/libde265/Release/"],
libraries=["de265"],
extra_compile_args=["/openmp"], # only for Windows
),
]
setup(
name="pylibde265",
ext_modules=cythonize(ext_modules, nthreads=os.cpu_count(), annotate=True),
data_files=[
("", ["./libde265/build/libde265/Release/libde265.dll"]),
("Lib/site-packages/pylibde265", ["typing/pyde265.pyi"]),
],
)