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?
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.
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.
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.
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 .
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With