# How to not precompile an optional dependency?

**URL:** <https://discourse.julialang.org/t/how-to-not-precompile-an-optional-dependency/63807>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 30, 2021, 8:22am UTC](https://discourse.julialang.org/t/how-to-not-precompile-an-optional-dependency/63807 "2021-06-30T08:22:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [June 30, 2021, 8:22am UTC](https://discourse.julialang.org/t/how-to-not-precompile-an-optional-dependency/63807/1 "2021-06-30T08:22:02Z")

</div>

Hi,  
I’m working on a project that requires a proprietary solver (Gurobi and a license) for a particular feature. I would like other users to be able to use the package even though they do not have installed gurobi on their machine. Of course they would not be able to use whatever features of the package needs Gurobi.

Currently, on a computer that does not have the ad hoc solver installed, I can’t load the project because Gurobi is in the manifest and fails to build.

I would like to know if there exists a way to tell julia that I don’t wan’t that dependency to be precompiled so that I can use the rest of the package.

Many thanks!

---

<div class="post-metadata">

**Author:** ![rikh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rikh/32/204104_2.png) [@rikh](https://discourse.julialang.org/u/rikh)\
**Post date:** [June 30, 2021, 8:26am UTC](https://discourse.julialang.org/t/how-to-not-precompile-an-optional-dependency/63807/2 "2021-06-30T08:26:07Z")

</div>

You might be looking for [Requires.jl](https://github.com/JuliaPackaging/Requires.jl).

---

<div class="post-metadata">

**Author:** ![HenriDeh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/henrideh/32/8316_2.png) [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Post date:** [June 30, 2021, 8:32am UTC](https://discourse.julialang.org/t/how-to-not-precompile-an-optional-dependency/63807/3 "2021-06-30T08:32:16Z")

</div>

Ha yes thank you, it looks like exactly what I was looking for.
