Re: Python: Conditional dependencies (environment markers)

Thomas Leonard <[email protected]> Thu, 9 Mar 2017 18:09:58 +0000
Newsgroups gmane.comp.file-systems.zero-install.devel
Message-ID <CAG4opy_jdvWoBcV_ydLafYV4u6QqqdZH0wvArOm2s4Ca1dixrg@mail.gmail.com>
On 8 March 2017 at 12: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.

Note that you can do "<requires os ='windows'>..." to say that a
dependency only applies to Windows:

http://0install.net/interface-spec.html#dependencies


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