-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from seomoz/improve_build
Improve the build
- Loading branch information
Showing
8 changed files
with
70 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,8 @@ mozsci/spearmanr_by_fast.cpp | |
|
||
*.pyc | ||
|
||
.coverage | ||
mozsci/*.so | ||
|
||
# vim files | ||
*.swp |
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,13 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
script: make test | ||
virtualenv: | ||
system_site_packages: true | ||
cache: | ||
- apt | ||
- pip | ||
install: | ||
- sudo sudo apt-get -y install libatlas-base-dev libatlas-dev lib{blas,lapack}-dev python-numpy python-scipy python-matplotlib | ||
- pip install -r requirements.txt --use-mirrors | ||
- python setup.py build_ext --inplace |
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 @@ | ||
clean: | ||
# Remove the build | ||
rm -rf build dist | ||
# And all of our pyc files | ||
rm -f mozsci/*.pyc test/*.pyc | ||
# All compiled files | ||
rm -f mozsci/*.so mozsci/spearmanr_by_fast.cpp | ||
# And lastly, .coverage files | ||
rm -f .coverage | ||
|
||
test: nose | ||
|
||
nose: | ||
rm -rf .coverage | ||
nosetests --exe --cover-package=mozsci --with-coverage --cover-branches -v --cover-erase | ||
|
||
unittest: | ||
python -m unittest discover -s test | ||
|
||
# build inplace for unit tests to pass (since they are run from this | ||
# top level directory we need the .so files to be in the src tree | ||
# when they run. | ||
build: clean | ||
python setup.py build_ext --inplace | ||
|
||
install: build | ||
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 |
---|---|---|
@@ -1,14 +1,9 @@ | ||
mozsci | ||
====== | ||
|
||
Data science tools from SEOMoz | ||
[![Build Status](https://api.travis-ci.org/seomoz/mozsci.png)](https://api.travis-ci.org/seomoz/mozsci.png) | ||
|
||
Dependencies: | ||
numpy | ||
scipy | ||
matplotlib | ||
cython | ||
Data science tools from Moz | ||
|
||
Includes a optional wrapper for Pybrain neural networks, in `models.pybrain_wrapper`. | ||
If this is used, Pybrain must also be available. | ||
See `.travis.yml` and `requirements.txt` for dependencies. | ||
|
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,6 @@ | ||
nose | ||
coverage | ||
Cython>=0.17 | ||
simplejson | ||
pybrain==0.3.0 | ||
scikit-learn |
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
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