ID: 15fab581a9fa1ef8f528dd2dc540de0b04842b42
39 lines
—
1K —
View raw
| SHELL = /bin/bash
REPOSITORY = https://github.com/statsmodels/statsmodels.git
check_env_vars:
ifdef OUTPUT_PATH
OUTPUT_PATH := ${OUTPUT_PATH}/statsmodels
else
$(error OUTPUT_PATH is undefined)
endif
venv-3.10:
export PYENV_VERSION=3.10
python3 -m venv venv
repository:
git clone ${REPOSITORY} repository
# NOTE: building this documentation is a pain in the ass. Dependencies are not pinned, but
# even when pinned there are still more errors and exceptions. Plus, during the build
# they seem to be downloading some datasets over HTTP that are no longer availabe (error 404).
# Building older versions is basically impossible (┛ಠ_ಠ)┛彡┻━┻
# requires to have fortran, meson, libopenblas, graphviz, pandoc installed
v0.14.2: check_env_vars venv-3.10 repository
source venv/bin/activate
cd repository
git checkout tags/$@
pip install -r requirements.txt -r requirements-dev.txt -r requirements-doc.txt "sphinx == 7.3.7" "notebook == 7.2.1" "nbsphinx == 0.9.4" "nbconvert == 7.16.4" "pyyaml == 6.0.1" "simplegeneric == 0.8.1" "seaborn == 0.13.2" "numpydoc == 1.7.0" "numpy == 1.23.1" "pandas == 2.2.2" pickleshare
pip install -e .[docs]
cd docs
make html
mkdir --parents "${OUTPUT_PATH}"
cp --recursive build/html "${OUTPUT_PATH}/$@"
.ONESHELL:
.SUFFIXES:
.PHONY:
.DELETE_ON_ERROR:
|