Skip to content

Commit 9dd884e

Browse files
committed
refined the recipe and setup.py
1 parent 15facaa commit 9dd884e

File tree

7 files changed

+64
-5
lines changed

7 files changed

+64
-5
lines changed
File renamed without changes.
File renamed without changes.

conda.recipe/dev/meta.yaml

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

conda.recipe/release/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/release/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 renamed to conda.recipe/release/meta.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,14 @@ requirements:
2222
- python
2323
- numpy
2424
- matplotlib
25+
- nose
2526

2627
test:
2728
imports:
2829
- probscale
2930

3031
commands:
31-
- nosetests
32-
33-
requires:
34-
- nose
35-
- scipy
32+
- python -c "import matplotlib; matplotlib.use('agg'); import probscale; probscale.test()"
3633

3734
about:
3835
home: http://phobson.github.io/mpl-probscale/

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@
5050
platforms=PLATFORMS,
5151
classifiers=CLASSIFIERS,
5252
install_requires=INSTALL_REQUIRES,
53+
zip_safe=False,
5354
)

0 commit comments

Comments
 (0)