source: sasview/build_tools/conda/README.md @ 3b8efec

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 3b8efec was cf20539, checked in by Peter Parker, 10 years ago

Useful link for safekeeping.

  • Property mode set to 100644
File size: 2.2 KB
RevLine 
[81b369bb]1# Conda Recipes
[55bde35]2
3Here we store the recipes for building conda packages of the dependencies of SasView.  These are dependencies that unforunately do not come pre-bundled with Anaconda.
4
[981a1d4]5## Creating a Recipe
[55bde35]6
7An easy way to get started with a recipe is to use the skeleton command that comes with conda, which looks for all the information it needs on PyPi (of course, this will only work if the module exists on PyPi...):
8
[81b369bb]9```
[55bde35]10conda skeleton pypi package_name
[81b369bb]11```
[55bde35]12
13This automatically chooses the most recent version up on PyPi.  You may specify an older version as follows:
14
[81b369bb]15```
[55bde35]16conda skeleton pypi package_name --version 1.0.9
[81b369bb]17```
[55bde35]18
19If you run `conda skeleton` from this directory, then the recipes will go into the right place.
20
21If you're lucky this is all you will need to ever do to create a new recipe, but you may need to go in and tinker with the meta.yaml file from time to time.
22
[981a1d4]23## Issues
[55bde35]24
25* Sometimes downloading the package from PyPi is problematic.  You may see something like the following:
26
[81b369bb]27  ```
[55bde35]28  Error: Could not open 'C:\\TempAnaconda\\conda-bld\\src_cache\\showfiles.php?group_id=15583.part' for writing ([Errno 22] invalid mode ('wb') or filename: 'C:\\TempAnaconda\\conda-bld\\src_cache\\showfiles.php?group_id=15583.part').
[81b369bb]29  ```
[55bde35]30
[81b369bb]31  If so, the `source:` values in meta.yaml are pointing to external urls that are not direct links to the downloads (in the case above, a .php link).  Change  `fn:` and `url:` from `http://sourceforge.net/project/showfiles.php?group_id=15583` or similar to an actual link to a .zip of .tar.gz.  Remember to add a correct `mdf:` property so that future users have their downloads checked.
[55bde35]32
33* I once tried to use recipes generated with older versions of conda and ran into problems.  Your options here are either to hack away at the recipe until it works, or just re-generate the recipe with skeleton.
34
[81b369bb]35# Building a Conda Package and Uploading to Binstar
[55bde35]36
[81b369bb]37```
[2642896]38conda build bumps\
[81b369bb]39```
[2642896]40
[81b369bb]41```
[2642896]42TEST END: bumps-0.7.5.4-py27_0
43# If you want to upload this package to binstar.org later, type:
44#
45# $ binstar upload C:\TempAnaconda\conda-bld\win-32\bumps-0.7.5.4-py27_0.tar.bz2
46#
47# To have conda build upload to binstar automatically, use
48# $ conda config --set binstar_upload yes
[81b369bb]49```
[cf20539]50
51# Useful Links
52
53* http://conda.pydata.org/docs/build.html
Note: See TracBrowser for help on using the repository browser.