Skip to content

Commit

Permalink
makefile: try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Dec 11, 2024
1 parent b8e2ff8 commit 8909140
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ files = stock_pandas test *.py
test_files = *
# test_files = cum_append

export STOCK_PANDAS_BUILDING_EXT = 1

test:
STOCK_PANDAS_COW=1 pytest -s -v test/test_$(test_files).py --doctest-modules --cov stock_pandas --cov-config=.coveragerc --cov-report term-missing

Expand All @@ -24,17 +26,22 @@ report:
.PHONY: build

build: stock_pandas
rm -rf dist build
make clean
make build-ext
make build-pkg

clean:
rm -rf dist build
rm stock_pandas/math/*.so
rm stock_pandas/math/*.cpp

build-pkg:
@echo "\033[1m>> Building package... <<\033[0m"
@python -m build --sdist --wheel

build-ext:
@echo "\033[1m>> Building extension... <<\033[0m"
@STOCK_PANDAS_BUILDING_EXT=1 python setup.py build_ext --inplace
python setup.py build_ext --inplace

build-doc:
sphinx-build -b html docs build_docs
Expand Down

0 comments on commit 8909140

Please sign in to comment.