David Cournapeau <cournape <at> gmail.com> writes: > Note that in Cabal at least, those conditionals work not just for > requirements, but for pretty much any section that is not metadata (so > in the python world, you could condition on the package you want to > install, etc...).
Right, but the concept of environment markers is simple enough that we should be able to extend to other areas. Requirements are just the most obvious application. > That's great. May I ask you to put this code somewhere ? This would > allow me to try using this inside bento. It would allow using whatever > format you are ending up with directly with existing projects (bento > is is already used by some complex packages such as numpy or scipy). > It would be a good way to ensure the format provides enough semantics. Which code do you mean? Although I have written some code to produce metadata in YAML format, I have not yet got anything that consumes it to a reasonable point (apart from sdist generation, which should not be environment-specific). I will publish what I have as soon as it has reached a reasonable state of usefulness. Precisely because it isn't declarative, existing environment-specific code in setup.py files in PyPI archives is not easy to convert to environment markers automatically :-( Regards, Vinay Sajip _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig