01725b54b2
Statsmodels is a Python package that provides a complement to scipy for statistical computations including descriptive statistics and estimation and inference for statistical models. Main Features: * linear regression models: GLS (including WLS and LS aith AR errors) and OLS. * glm: Generalized linear models with support for all of the one-parameter exponential family distributions. * discrete: regression with discrete dependent variables, including Logit, Probit, MNLogit, Poisson, based on maximum likelihood estimators * rlm: Robust linear models with support for several M-estimators. * tsa: models for time series analysis - univariate: AR, ARIMA; multivariate: VAR and structural VAR * nonparametric: (Univariate) kernel density estimators * datasets: Datasets to be distributed and used for examples and in testing. * stats: a wide range of statistical tests, diagnostics and specification tests * iolib: Tools for reading Stata .dta files into numpy arrays, printing table output to ascii, latex, and html * miscellaneous models * sandbox: statsmodels contains a sandbox folder with code in various stages of * developement and testing which is not considered "production ready", including Mixed models, GARCH and GMM estimators, kernel regression, panel data models. WWW: https://www.github.com/statsmodels/statsmodels PR: ports/183932 Submitted by: Johannes Jost Meixner <xmj chaot.net>
58 lines
1.9 KiB
Makefile
58 lines
1.9 KiB
Makefile
# Created by: Johannes Meixner <xmj@chaot.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= statsmodels
|
|
PORTVERSION= 0.5.0
|
|
CATEGORIES= math python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= xmj@chaot.net
|
|
COMMENT= Complement to SciPy for statistical computations
|
|
|
|
LICENSE= BSD
|
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}scipy>0:${PORTSDIR}/science/py-scipy \
|
|
${PYTHON_PKGNAMEPREFIX}pandas>0:${PORTSDIR}/math/py-pandas \
|
|
${PYTHON_PKGNAMEPREFIX}patsy>0:${PORTSDIR}/math/py-patsy
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
|
${PYTHON_PKGNAMEPREFIX}scipy>0:${PORTSDIR}/science/py-scipy \
|
|
${PYTHON_PKGNAMEPREFIX}pandas>0:${PORTSDIR}/math/py-pandas \
|
|
${PYTHON_PKGNAMEPREFIX}patsy>0:${PORTSDIR}/math/py-patsy
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
EXAMPLESDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PLIST_SUB= PYDISTUTILS_EGGINFO=${PYDISTUTILS_EGGINFO}
|
|
PYTHON_P3K_PLIST_HACK= yes
|
|
PYDISTUTILS_NOEGGINFO= yes
|
|
PORTDOCS= * .buildinfo
|
|
PORTEXAMPLES= *
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
BUILD_DEPENDS+= sphinx-build:${PORTSDIR}/textproc/py-sphinx \
|
|
${PYTHON_PKGNAMEPREFIX}matplotlib>0:${PORTSDIR}/math/py-matplotlib \
|
|
ipython:${PORTSDIR}/devel/ipython
|
|
|
|
PYDISTUTILS_BUILD_TARGET+= build_sphinx
|
|
.endif
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/nonparametric/_smoothers_lowess.so
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/nonparametric/linbin.so
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/tsa/kalmanf/kalman_loglike.so
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${WRKSRC}/README_l1.txt ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|