Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
)) | ||
)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
${PYTHON} setup.py install || exit 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |