From b2fc68563aeeaed8ef1ddb51c030d65034cf9eed Mon Sep 17 00:00:00 2001 From: Linlang Date: Thu, 26 Dec 2024 13:23:56 +0800 Subject: [PATCH] fix_ci_error --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index cb3a79fae1..c6754c34c9 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,10 @@ deepclean: clean # What this code does is compile two Cython modules, rolling and expanding, using setuptools and Cython, # and builds them as binary expansion modules that can be imported directly into Python. # Since pyproject.toml can't do that, we compile it here. + +# pywinpty as a dependency of jupyter on windows, if you use pip install pywinpty installation, +# will first download the tar.gz file, and then locally compiled and installed, +# this will lead to some unnecessary trouble, so we choose to install the compiled whl file, to avoid trouble. prerequisite: @if [ -n "$(SO_FILES)" ]; then \ echo "Shared library files exist, skipping build."; \ @@ -64,18 +68,14 @@ prerequisite: python -c "from setuptools import setup, Extension; from Cython.Build import cythonize; import numpy; extensions = [Extension('qlib.data._libs.rolling', ['qlib/data/_libs/rolling.pyx'], language='c++', include_dirs=[numpy.get_include()]), Extension('qlib.data._libs.expanding', ['qlib/data/_libs/expanding.pyx'], language='c++', include_dirs=[numpy.get_include()])]; setup(ext_modules=cythonize(extensions, language_level='3'), script_args=['build_ext', '--inplace'])"; \ fi -# Install the package in editable mode. -dependencies: - python -m pip install -e . - -# pywinpty as a dependency of jupyter on windows, if you use pip install pywinpty installation, -# will first download the tar.gz file, and then locally compiled and installed, -# this will lead to some unnecessary trouble, so we choose to install the compiled whl file, to avoid trouble. -pywinpt: ifeq ($(IS_WINDOWS),true) python -m pip install pywinpty --only-binary=:all: endif +# Install the package in editable mode. +dependencies: + python -m pip install -e . + lightgbm: python -m pip install lightgbm --prefer-binary @@ -101,7 +101,7 @@ analysis: python -m pip install -e .[analysis] all: - python -m pip install -e .[dev,lint,docs,package,test,analysis,rl] + python -m pip install -e .[pywinpty,dev,lint,docs,package,test,analysis,rl] install: prerequisite dependencies