Download Kronos/qlib/setup.py from humblman/baseline: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/datasets/humblman/baseline/resolve/main/Kronos/qlib/setup.py
- Command line
-
hf download hf://datasets/humblman/baseline/Kronos/qlib/setup.py
-
curl -L -o setup.py https://huggingface.co/datasets/humblman/baseline/resolve/main/Kronos/qlib/setup.py
509 Bytes
| 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], | |
| ), | |
| ], | |
| ) | |