Re: Python: Conditional dependencies (environment markers)
Thomas Leonard <[email protected]> Thu, 9 Mar 2017 18:12:22 +0000
| Newsgroups | gmane.comp.file-systems.zero-install.devel |
|---|---|
| Message-ID | <CAG4opy-0Z73AP5c5q_TEy5SOZBksgUc_8CnFOvFF8KfL3X=FVA@mail.gmail.com> |
On 9 March 2017 at 14:08, Tim Diels <[email protected]> wrote: > When specifying multiple constraints, are they combined via intersection? > > E.g. is the following equivalent to 3.3..!4? > > <requires interface='dep2.xml' importance='required'> > <version not-before='3' before='4' /> <!-- dep2==3.* --> > <version not-before='3.3' before='4' /> <!-- dep2>=3.3,<4 --> > </requires> Yes. Use <requires version='3..!4 | 3.3..!4'> if you want to allow either case (this is the same as '3..!4' in this example). -- talex5 (GitHub/Twitter) http://roscidus.com/blog/ GPG: 5DD5 8D70 899C 454A 966D 6A51 7513 3C8F 94F6 E0CC GPG: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford