I think for the moment you either need to include it in the REQUIRE file, or not and make the user to install gpu-related bits themselves.
IMO This is not ideal... Another example is Markdown: you have to include that in the REQUIRE, even though Base.Markdown is included in 0.4. This means you end up with with two *different* versions of Markdown kicking around (you/your users have to tread carefully so as not to use the wrong one). On Sunday, 22 March 2015 01:37:10 UTC-7, Deniz Yuret wrote: > > Is there a way to conditionally indicate requirements in the REQUIRE file? > Two examples: > > 1. the DistributedArrays package is a requirement in v0.4 but not in v0.3. > As the maintainer of a package which requires this functionality what > should my REQUIRE file say? > > 2. I want my package to use CUDArt/CUBLAS if installed on a gpu machine > but not to break installation otherwise. Is there a right way to indicate > this in the REQUIRE file? > > best, > deniz > >