Skip to content

Commit 689797c

Browse files
committed
Merge branch 'feature/add-conda-recipe'
2 parents d9fa8db + 4ea0474 commit 689797c

File tree

5 files changed

+61
-69
lines changed

5 files changed

+61
-69
lines changed

.binstar.yml

+13-69
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,23 @@
1-
## The package attribure specifies a binstar package namespace to build the package to.
2-
## This can be specified here or on the command line
31
package: conda-build
2+
user: conda
43

5-
## You can also specify the account to upload to,
6-
## you must be an admin of that account, this
7-
## defaults to your user account
8-
# user: USERNAME
9-
10-
#===============================================================================
11-
# Build Matrix Options
12-
# Thes options may be a single item, a list or empty
13-
# The resulting number of builds is [platform * engine * env]
14-
#===============================================================================
15-
16-
## The platforms to build on.
17-
## platform defaults to linux-64
184
platform:
19-
- win-64
5+
- linux-32
6+
- linux-64
207
- win-32
21-
## The engine are the inital conda packages you want to run with
8+
- win-64
9+
# - osx-64
10+
2211
engine:
2312
- python=2
24-
- python=3
25-
## The env param is an environment variable list
26-
# env:
27-
# - MY_ENV=A CC=gcc
28-
# - MY_ENV=B
13+
- python=3.3
14+
- python=3.4
2915

30-
#===============================================================================
31-
# Script options
32-
# These options may be broken out into the before_script, script and after_script
33-
# or not, that is up to you
34-
#===============================================================================
35-
36-
## Run before the script
37-
# before_script:
38-
# - echo "before_script!"
39-
## Put your main computations here!
16+
# Can't test on binstar because it needs to be installed in root
17+
script:
18+
- conda build --no-test ./conda.recipe/
4019

4120
install:
42-
# Use the provided conda and Python to run the install script. The order of these commands matters.
43-
- conda install requests
44-
- set "CONDA_DEFAULT_ENV="
45-
- python tests\install_miniconda.py
46-
47-
test:
48-
- cd tests\test-recipes\metadata
49-
# This will be effectively a no-op for recipes without bld.bat
50-
- for /D %%f in (*) do (C:\Users\binstar\conda-build-miniconda\Scripts\conda-build.exe --no-binstar-upload %%~nf)
51-
52-
# script:
53-
# - echo "This is my binstar build!"
54-
55-
## This will run after the script regardless of the result of script
56-
## BINSTAR_BUILD_RESULT=[succcess|failure]
57-
# after_script:
58-
# - echo "The build was a $BINSTAR_BUILD_RESULT" | tee artifact1.txt
59-
## This will be run only after a successfull build
60-
# after_success:
61-
# - echo "after_success!"
62-
## This will be run only after a build failure
63-
# after_failure:
64-
# - echo "after_failure!"
65-
66-
#===============================================================================
67-
# Build Results
68-
# Build results are split into two categories: artifacts and targets
69-
# You may omit either key and stiff have a successfull build
70-
# They may be a string, list and contain any bash glob
71-
#===============================================================================
21+
- conda update --name root --yes --quiet conda-build
7222

73-
## Build Targets: Upload these files to your binstar package
74-
## build targets may be a list of files (globs allows) to upload
75-
## The special build targets 'conda' and 'pypi' may be used to
76-
## upload conda builds
77-
## e.g. conda is an alias for /opt/anaconda/conda-bld/<os-arch>/*.tar.bz2
78-
# build_targets:
79-
# - conda
23+
build_targets: conda

conda.recipe/bld.bat

+8
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+
del %SCRIPTS%\conda-init
5+
if errorlevel 1 exit 1
6+
7+
copy bdist_conda.py %PREFIX%\Lib\distutils\command\
8+
if errorlevel 1 exit 1

conda.recipe/build.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
$PYTHON setup.py install
4+
5+
cp bdist_conda.py ${PREFIX}/lib/python${PY_VER}/distutils/command

conda.recipe/meta.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package:
2+
name: conda-build
3+
version: 1.10alpha.0
4+
5+
source:
6+
git_url: ../
7+
8+
build:
9+
{% if 'CONDA_RELEASE' in environ %}
10+
number: {{ environ.get('CONDA_BUILD_NUMBER', 0) }}
11+
{% else %}
12+
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
13+
string: py{{ environ.get('PY_VER').replace('.', '') }}_{{ environ.get('GIT_BUILD_STR', 'GIT_STUB') }}
14+
{% endif %}
15+
16+
requirements:
17+
build:
18+
- python
19+
run:
20+
- python
21+
- conda
22+
- patchelf [linux]
23+
24+
test:
25+
commands:
26+
- conda-build -h
27+
imports:
28+
- conda_build
29+
30+
about:
31+
home: https://github.com/conda/conda-build
32+
license: BSD

conda.recipe/run_test.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import conda_build
2+
3+
print('conda_build.__version__: %s' % conda_build.__version__)

0 commit comments

Comments
 (0)