Skip to content

Instantly share code, notes, and snippets.

@srooks10
Last active September 2, 2015 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srooks10/2907cd953f16c683844c to your computer and use it in GitHub Desktop.
Save srooks10/2907cd953f16c683844c to your computer and use it in GitHub Desktop.
Conda recipe to build cookiecutter 1.0.0

This is how I build, on linux-64, conda packages for cookiecutter 1.0.0 for python 2.7 and 3.4 on linux-64 and win-64.

  1. First build packages for binaryornot 0.3.0 and for click 3.3.

  2. Put the files meta.yaml and build.sh from this gist in a ./cookiecutter folder and run:

conda build --python 2.7 --python 3.4 cookiecutter/
conda convert --platform win-64 ~/anaconda/conda-bld/linux-64/cookiecutter-1.0.0-py27_0.tar.bz2
conda convert --platform win-64 ~/anaconda/conda-bld/linux-64/cookiecutter-1.0.0-py34_0.tar.bz2

The linux packages are in ~/anaconda/conda-bld/linux-64 and the windows packages in ./win-64.

#!/bin/bash
$PYTHON setup.py install
package:
name: cookiecutter
version: {{ environ['GIT_DESCRIBE_TAG'] }}
source:
git_tag: 1.0.0
git_url: https://github.com/audreyr/cookiecutter.git
build:
entry_points:
- cookiecutter = cookiecutter.cli:main
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}
requirements:
build:
- python
- setuptools
- binaryornot >=0.2.0
- jinja2 >=2.4
- pyyaml >=3.10
- mock # [py27]
- click <4.0
run:
- python
- setuptools
- binaryornot >=0.2.0
- jinja2 >=2.4
- pyyaml >=3.10
- mock # [py27]
- click <4.0
test:
imports:
- cookiecutter
commands:
# You can put test commands to be run here. Use this to test that the
# entry points work.
- cookiecutter --help
about:
home: https://github.com/audreyr/cookiecutter
license: BSD License
summary: 'A command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment