Re: Python: Conditional dependencies (environment markers)

Tim Diels <[email protected]> Thu, 9 Mar 2017 15:08:16 +0100
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAMjmSuSUYZ5gzex_=uPFBvW1pfkH9iQZXw6KvSGGHygu9xjs_A@mail.gmail.com>
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>


On 8 March 2017 at 13:54, Tim Diels <[email protected]> wrote:

> That would work in 99.9% of cases, which is sufficient. I thought the user
> had to select which of the recommended to install; select recommended when
> possible is a better approach, indeed. This would not work in esoteric
> cases where one condition (os=windows) requires some_interface==2.* and
> another (os!=windows) requires some_interface==1.*; but I'll ignore this
> until I encounter such a case in the wild, they might not even exist.
>
> Thanks,
> Tim
>

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

_______________________________________________
Zero-install-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/zero-install-devel