Skip to content

Commit a79713d

Browse files
committed
Merge pull request #9 from phobson/conda-recipe
Conda recipe
2 parents 80248f9 + b28b3cc commit a79713d

File tree

4 files changed

+69
-0
lines changed

4 files changed

+69
-0
lines changed

conda.recipe/bld.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
"%PYTHON%" setup.py install
2+
if errorlevel 1 exit 1
3+
4+
:: Add more build steps here, if they are necessary.
5+
6+
:: See
7+
:: http://docs.continuum.io/conda/build.html
8+
:: for a list of environment variables that are set during the build process.

conda.recipe/build.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
$PYTHON setup.py install
4+
5+
# Add more build steps here, if they are necessary.
6+
7+
# See
8+
# http://docs.continuum.io/conda/build.html
9+
# for a list of environment variables that are set during the build process.

conda.recipe/meta.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
package:
2+
name: mpl-probscale
3+
version: v0.1.0
4+
5+
source:
6+
git_url: https://github.com/phobson/mpl-probscale.git
7+
git_tag: v0.1.0
8+
# patches:
9+
# List any patch files here
10+
# - fix.patch
11+
12+
build:
13+
number: 1
14+
15+
requirements:
16+
build:
17+
- python
18+
- numpy
19+
- matplotlib
20+
- scipy
21+
22+
run:
23+
- python
24+
- numpy
25+
- matplotlib
26+
- scipy
27+
28+
test:
29+
imports:
30+
- probscale
31+
32+
commands:
33+
- nosetests
34+
35+
requires:
36+
- nose
37+
38+
about:
39+
home: http://phobson.github.io/mpl-probscale/
40+
license: BSD License
41+
summary: 'Probability scales for matplotlib.'
42+
43+
# See
44+
# http://docs.continuum.io/conda/build.html for
45+
# more information about meta.yaml/configure

docs/tutorial/getting_started.ipynb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
"# Getting started with `mpl-probscale`.\n",
88
"\n",
99
"## Installation\n",
10+
"\n",
11+
"### From `conda`\n",
12+
"I've uploaded the package to my anaonda channel.\n",
13+
"\n",
14+
"`conda install --channel=phobson mpl-probscale`\n",
15+
"\n",
16+
"### From source\n",
1017
"`mpl-probscale` is a pure python package. It should be fairly trivial to install from source on any platform. To do that, download or clone from [github](https://github.com/phobson/mpl-probscale), unzip the archive if necessary then do:\n",
1118
"\n",
1219
"```\n",

0 commit comments

Comments
 (0)