Skip to content

Commit

Permalink
[NB] Add Conda recipe template
Browse files Browse the repository at this point in the history
  • Loading branch information
cfobel committed Oct 3, 2016
1 parent 15ab4ff commit 6233fb8
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 0 deletions.
Binary file not shown.
12 changes: 12 additions & 0 deletions .conda-recipe-template/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"%PYTHON%" -m pip install --no-cache --find-links http://192.99.4.95/wheels --trusted-host 192.99.4.95 "{{ package_name }}=={{ version }}"
if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
if not exist "%PREFIX%\Menu" mkdir "%PREFIX%\Menu"
copy "%RECIPE_DIR%\microdrop.ico" "%PREFIX%\Menu"
copy "%RECIPE_DIR%\Iconleak-Atrous-Console.ico" "%PREFIX%\Menu"
copy "%RECIPE_DIR%\microdrop-launcher.json" "%PREFIX%\Menu"
38 changes: 38 additions & 0 deletions .conda-recipe-template/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
package:
name: {{ conda_package_name }}
version: {{ version }}

build:
# entry_points:
# Put any entry points (scripts to be generated automatically) here. The
# syntax is module:function. For example
#
# - msgpack-python = msgpack-python:main
#
# Would create an entry point called msgpack-python that calls msgpack-python.main()

# If this is a new build for the same version, increment the build
# number. If you do not include this key, it defaults to 0.
number: {{ build_number }}

requirements:
build:
- python 2.7*
- appdirs
- jinja2
- microdrop-plugin-manager >=0.3.post4
- pip-helpers >=0.6.post3
- pycairo-gtk2
- wheeler.pygtkhelpers >=0.14.post7

run:
- appdirs
- jinja2
- microdrop-plugin-manager >=0.3.post4
- pip-helpers >=0.6.post3
- pycairo-gtk2
- wheeler.pygtkhelpers >=0.14.post7

about:
home: http://github.com/wheeler-microfluidics/microdrop-launcher
license: GPL
45 changes: 45 additions & 0 deletions .conda-recipe-template/microdrop-launcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"menu_name": "MicroDrop",
"menu_items":
[
{
"name": "Documentation",
"webbrowser": "http://microdrop.readthedocs.io",
"icon": "${MENU_DIR}/microdrop.ico"
},
{
"name": "GitHub project",
"webbrowser": "https://github.com/wheeler-microfluidics/microdrop"
},
{
"system": "python.exe",
"name": "MicroDrop Profile Manager",
"workdir": "${PREFIX}",
"icon": "${MENU_DIR}/microdrop.ico",
"scriptarguments":
["${PREFIX}\\Scripts\\microdrop-profile-manager.exe",
"--no-auto"],
"desktop": true,
"quicklaunch": true
},
{
"system": "python.exe",
"name": "MicroDrop",
"workdir": "${PREFIX}",
"icon": "${MENU_DIR}/microdrop.ico",
"scriptarguments":
["${PREFIX}\\Scripts\\microdrop-profile-manager.exe"],
"desktop": true,
"quicklaunch": true
},
{
"name": "MicroDrop environment prompt",
"system": "%windir%\\system32\\cmd.exe",
"scriptarguments": ["/K",
"${ROOT_PREFIX}\\Scripts\\activate.bat",
"${PREFIX}"],
"icon": "${MENU_DIR}/Iconleak-Atrous-Console.ico",
"desktop": true
}
]
}
Binary file added .conda-recipe-template/microdrop.ico
Binary file not shown.

0 comments on commit 6233fb8

Please sign in to comment.