mirror of
https://github.com/microsoft/qlib.git
synced 2026-06-06 05:51:17 +08:00
* fix(security): enforce RestrictedUnpickler for load_instance to prevent unsafe pickle deserialization * fix: lint error
25 lines
509 B
Python
25 lines
509 B
Python
import os
|
|
|
|
import numpy
|
|
from setuptools import Extension, setup
|
|
|
|
NUMPY_INCLUDE = numpy.get_include()
|
|
|
|
|
|
setup(
|
|
ext_modules=[
|
|
Extension(
|
|
"qlib.data._libs.rolling",
|
|
["qlib/data/_libs/rolling.pyx"],
|
|
language="c++",
|
|
include_dirs=[NUMPY_INCLUDE],
|
|
),
|
|
Extension(
|
|
"qlib.data._libs.expanding",
|
|
["qlib/data/_libs/expanding.pyx"],
|
|
language="c++",
|
|
include_dirs=[NUMPY_INCLUDE],
|
|
),
|
|
],
|
|
)
|