Changeset 81b369bb in sasview for build_tools/conda
- Timestamp:
- Feb 14, 2015 8:14:50 AM (10 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 981a1d4
- Parents:
- 34f113ad
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
build_tools/conda/README.md
r2642896 r81b369bb 1 = Conda Recipes = 1 # Conda Recipes 2 2 3 3 Here 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 4 5 == Creating a Recipe == 5 # Creating a Recipe 6 6 7 7 An 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 8 9 {{{ 9 ``` 10 10 conda skeleton pypi package_name 11 }}} 11 ``` 12 12 13 13 This automatically chooses the most recent version up on PyPi. You may specify an older version as follows: 14 14 15 {{{ 15 ``` 16 16 conda skeleton pypi package_name --version 1.0.9 17 }}} 17 ``` 18 18 19 19 If you run `conda skeleton` from this directory, then the recipes will go into the right place. … … 25 25 * Sometimes downloading the package from PyPi is problematic. You may see something like the following: 26 26 27 {{{27 ``` 28 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'). 29 }}}29 ``` 30 30 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.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. 32 32 33 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 34 35 == Building a Conda Package and Uploading to Binstar == 35 # Building a Conda Package and Uploading to Binstar 36 36 37 {{{ 37 ``` 38 38 conda build bumps\ 39 }}} 39 ``` 40 40 41 {{{ 41 ``` 42 42 TEST END: bumps-0.7.5.4-py27_0 43 43 # If you want to upload this package to binstar.org later, type: … … 47 47 # To have conda build upload to binstar automatically, use 48 48 # $ conda config --set binstar_upload yes 49 }}} 49 ```
Note: See TracChangeset
for help on using the changeset viewer.