Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
160 views
in Technique[技术] by (71.8m points)

python - 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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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).


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...