Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the meaning of conda's build string?

If I run conda info sphinx from the command line, the last entry as of August 24, 2017, is

sphinx 1.6.3 py36_0
-------------------
file name   : sphinx-1.6.3-py36_0.tar.bz2
name        : sphinx
version     : 1.6.3
build string: py36_0
...

What is the meaning of the build string, which is mirrored above in the package version? Is this the minimum version of the python interpereter required by a package?

like image 556
LumpyGrads Avatar asked Aug 25 '17 05:08

LumpyGrads


People also ask

What does conda-build do?

Conda-build contains commands and tools to use conda to build your own packages. It also provides helpful tools to constrain or pin versions in recipes. Building a conda package requires installing conda-build and creating a conda recipe.

What is a .conda file?

A conda package is a compressed tarball file that contains system-level libraries, Python or other modules, executable programs and other components. Conda keeps track of the dependencies between packages and platforms.

What is a meta Yaml file?

A conda-build recipe is a flat directory that contains the following files: meta. yaml ---A file that contains all the metadata in the recipe. Only package/name and package/version are required. build.sh ---The script that installs the files for the package on macOS and Linux.

What is Conda_prefix?

CONDA_PREFIX. The path to the conda environment used to build the package, such as /path/to/conda/env . Useful to pass as the environment prefix parameter to various conda tools, usually labeled -p or --prefix .


1 Answers

The first part of the build string (pyXX) of this package tells you the exact version of the Python interpreter that this package can be used for. Most likely, there are other packages for other versions of Python (py27, py35, etc.). The second part (after the underscore) tells you the build number of this package. The build number is typically incremented when there is a change in the build recipe, but no change in the version of the software being built. You can find more information in the description of the info/index.json fields.

Note, however, that the build string will be changing with conda build 3.0.

Package maintainers can customize their build strings using meta.yml (see Conda Build Documentation on Build section).

like image 66
darthbith Avatar answered Sep 19 '22 14:09

darthbith