Skip to content

Commit

Permalink
Merge aec0ed7 into ea554cc
Browse files Browse the repository at this point in the history
  • Loading branch information
bashtage committed Sep 19, 2014
2 parents ea554cc + aec0ed7 commit 15414ad
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Expand Up @@ -51,6 +51,14 @@ Binaries and source distributions are available from PyPi

http://pypi.python.org/pypi/statsmodels/

Binaries can be installed in Anaconda

conda install statsmodels

Development snapshots are also avaiable in Anaconda

conda install -c https://conda.binstar.org/statsmodels statsmodels


Installation from sources
=========================
Expand Down
27 changes: 27 additions & 0 deletions tools/binstar/README.md
@@ -0,0 +1,27 @@
Binstar
=======

[Binstar](http://binstar.org) is Continuum's solution for binary package distribution. This directory contains the files required for building a binstar package:

* `meta.yaml` - Information about the package and dependencies
* `bld.bat` - Windows batch file called in the build process
* `build.sh` - Linux/OSX batch file called in the build process

Two other helper files are included to automate building across Python 2.7, 3.3 and 3.4.

* `binstar_windows.bat`
* `binstar_linux.sh`

Running either file from statsmodels/binstar will build all three versions and upload them, assuming the account has been authenticated using

```
binstar login
```

Installing from binstar
-----------------------
The most recent snapshot can be installed using

```
conda install -c https://conda.binstar.org/statsmodels statsmodels
```
18 changes: 18 additions & 0 deletions tools/binstar/binstar_linux.sh
@@ -0,0 +1,18 @@
#!/bin/bash
cd ../..

## declare Python and Numpy Versions
declare -a PY_VERSIONS=( "27" "33" "34" )
declare -a NPY_VERSIONS=( "18" "19" )

## Loop across Python and Numpy
for PY in "${PY_VERSIONS[@]}"
do
export CONDA_PY=$PY
for NPY in "${NPY_VERSIONS[@]}"
do
export CONDA_NPY=$NPY
binstar remove statsmodels/statsmodels/0.6.0_dev/linux-64/statsmodels-0.6.0_dev-np${NPY}py${PY}_0.tar.bz2 -f
conda build ./tools/binstar
done
done
37 changes: 37 additions & 0 deletions tools/binstar/binstar_windows.bat
@@ -0,0 +1,37 @@
@echo off
Setlocal EnableDelayedExpansion
REM Get current directory
SET CURRENT_WORKING_DIR=%~dp0
REM Python and NumPy versions
set PY_VERSION=27 33 34
set NPY_VERSION=18 19


(for %%P in (%PY_VERSION%) do (
(for %%N in (%NPY_VERSION%) do (

REM Trick to force a delay. Windows sometimes has issues with rapid file deletion
call PING 1.1.1.1 -n 1 -w 5000 >NUL
REM Clean up
robocopy C:\Anaconda\conda-bld\work\ c:\temp\conda-work-trash * /MOVE /S
del c:\temp\conda-work-trash\*.*? /s
rmdir C:\Anaconda\conda-bld\work\.git /S /Q
REM Trick to force a delay. Windows sometimes has issues with rapid file deletion
call PING 1.1.1.1 -n 1 -w 30000 >NUL

IF %%P==27 (
call python2_setup.bat
) ELSE (
call python3_setup.bat
)
set CONDA_PY=%%P
set CONDA_NPY=%%N
echo Python: !CONDA_PY!, NumPy: !CONDA_NPY!

REM Remove from binstar
binstar remove statsmodels/statsmodels/0.6.0_dev/win-64\statsmodels-0.6.0_dev-np!CONDA_NPY!py!CONDA_PY!_0.tar.bz2 --force
cd %CURRENT_WORKING_DIR%
cd ..\..
conda build .\tools\binstar
))
))
1 change: 1 addition & 0 deletions tools/binstar/bld.bat
@@ -0,0 +1 @@
python setup.py install
3 changes: 3 additions & 0 deletions tools/binstar/build.sh
@@ -0,0 +1,3 @@
#!/bin/bash

${PYTHON} setup.py install || exit 1;
35 changes: 35 additions & 0 deletions tools/binstar/meta.yaml
@@ -0,0 +1,35 @@
package:
name: statsmodels
version: "0.6.0_dev"

source:
git_url: https://github.com/statsmodels/statsmodels.git

build:
number: 0

requirements:
build:
- python
- distribute
- cython 0.20*
- numpy
- scipy
- pandas
- patsy

run:
- python
- numpy
- numpy
- scipy
- pandas
- patsy

test:
imports:
- statsmodels

about:
home: http://statsmodels.sourceforge.net/
license : BSD License

0 comments on commit 15414ad

Please sign in to comment.