Skip to content

Commit

Permalink
fix_ci_error
Browse files Browse the repository at this point in the history
  • Loading branch information
SunsetWolf committed Dec 26, 2024
1 parent 6b91dea commit b2fc685
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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."; \
Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit b2fc685

Please sign in to comment.