Can zc.buildout use same comparison operator for versions as setup.py

Hello Can zc.buildout use same comparison operator for versions as setup.py? *buildout* It use "show-picked-versions" for print verison https://pypi.python.org/pypi/zc.buildout/2.3.1#easier-reporting-and-managing... [versions] buildout-versions = 1.2 setuptools = 0.6c11 zc.buildout = 1.5.0 *setup.py* It use install_requires for handle package's version https://docs.python.org/2/distutils/setupscript.html#relationships-between-d... install_requires=[ 'django == 1.4', 'South == 0.7.5', ] Is there any way for "show-picked-versions" print version be used by setup.py install_requires? Thanks William -------------------- This is the life!

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/25/2014 10:21 PM, William Zhang wrote:
Hello Can zc.buildout use same comparison operator for versions as setup.py?
*buildout* It use "show-picked-versions" for print verison https://pypi.python.org/pypi/zc.buildout/2.3.1#easier-reporting-and-managing...
[versions] buildout-versions = 1.2 setuptools = 0.6c11 zc.buildout = 1.5.0
*setup.py* It use install_requires for handle package's version https://docs.python.org/2/distutils/setupscript.html#relationships-between-d...
install_requires=[ 'django == 1.4', 'South == 0.7.5', ]
Is there any way for "show-picked-versions" print version be used by setup.py install_requires?
zc.buildout uses a configparser/ConfigParser-based config file, which mandates the single equal sign. It also doesn't support ranges or other (new) PEP 440 syntax for versions ('~=', etc.). Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAlSd37wACgkQ+gerLs4ltQ7x7gCePOrTgsoB6fn3kVw7Vlto4t9e WtMAoKUCK4IVnNjZBaaPhvy7u6C3nIfD =26gz -----END PGP SIGNATURE-----

On Fri, Dec 26, 2014 at 5:22 PM, Tres Seaver <tseaver@palladion.com> wrote:
zc.buildout uses a configparser/ConfigParser-based config file, which mandates the single equal sign. It also doesn't support ranges or other (new) PEP 440 syntax for versions ('~=', etc.).
It may be worth noting the intent of specifying versions in a buildout config and a version constraint for a software package in setup.py is different. Constraints in setup.py are intended to specify what versions a package is compatible with; they're about the code in the package. Versions in a buildout config (sometimes called "nails") are about getting a repeatable build: *this* build should use exactly *this* version. I hope that helps. -Fred -- Fred L. Drake, Jr. <fred at fdrake.net> "A storm broke loose in my mind." --Albert Einstein

On Thu, Dec 25, 2014 at 10:21 PM, William Zhang <jollychang@gmail.com> wrote:
Hello Can zc.buildout use same comparison operator for versions as setup.py?
No. They do technically allow limited ranges, but the primary purpose is to set/pin/nail specific versions. Fred did a good job of explaining this. ... Why do you ask?
Is there any way for "show-picked-versions" print version be used by setup.py install_requires?
If you run buildout in verbose mode (-v), it will will give an indication of why it's trying to get a particular requirement. Note that requirements can come from a variety of places, including setup.py, the versions section, and requirements stated in egg and similar parts. Jim -- Jim Fulton http://www.linkedin.com/in/jimfulton
participants (4)
-
Fred Drake
-
Jim Fulton
-
Tres Seaver
-
William Zhang