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.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 7945367 was
cf20539,
checked in by Peter Parker, 10 years ago
|
Useful link for safekeeping.
|
-
Property mode set to
100644
|
File size:
2.2 KB
|
Line | |
---|
1 | # Conda Recipes |
---|
2 | |
---|
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 | |
---|
5 | ## Creating a Recipe |
---|
6 | |
---|
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 | |
---|
9 | ``` |
---|
10 | conda skeleton pypi package_name |
---|
11 | ``` |
---|
12 | |
---|
13 | This automatically chooses the most recent version up on PyPi. You may specify an older version as follows: |
---|
14 | |
---|
15 | ``` |
---|
16 | conda skeleton pypi package_name --version 1.0.9 |
---|
17 | ``` |
---|
18 | |
---|
19 | If you run `conda skeleton` from this directory, then the recipes will go into the right place. |
---|
20 | |
---|
21 | If 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 | |
---|
23 | ## Issues |
---|
24 | |
---|
25 | * Sometimes downloading the package from PyPi is problematic. You may see something like the following: |
---|
26 | |
---|
27 | ``` |
---|
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 | ``` |
---|
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. |
---|
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 | |
---|
35 | # Building a Conda Package and Uploading to Binstar |
---|
36 | |
---|
37 | ``` |
---|
38 | conda build bumps\ |
---|
39 | ``` |
---|
40 | |
---|
41 | ``` |
---|
42 | TEST 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 |
---|
49 | ``` |
---|
50 | |
---|
51 | # Useful Links |
---|
52 | |
---|
53 | * http://conda.pydata.org/docs/build.html |
---|
Note: See
TracBrowser
for help on using the repository browser.