# Configure runtime\_env for multiple local packages

**URL:** https://discuss.ray.io/t/configure-runtime-env-for-multiple-local-packages/15975
**Category:** Ray Clusters
**Created:** [October 9, 2024, 4:47pm UTC](https://discuss.ray.io/t/configure-runtime-env-for-multiple-local-packages/15975 "2024-10-09T16:47:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jascase901](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jascase901/32/6624_2.png) [@jascase901](https://discuss.ray.io/u/jascase901)
#### Post date: [October 9, 2024, 4:47pm UTC](https://discuss.ray.io/t/configure-runtime-env-for-multiple-local-packages/15975/1 "2024-10-09T16:47:43Z")

</div>

I work on a project that is distributed among multiple git repos.

For example  
ClassificationTrainerApp (main git repo not installed)

- DataTransformerUtils (installed lib)
- CustomLoggingUtils (installed lib)

Locally I develop using pip install -e on the dependent libs. Is there a way to configure the runtime env to mimic this.

The documentation I have read to configure the runtime\_env using work\_dir and pymodules seems to assume a monorepo type setup.

---

<div class="post-metadata">

### Author: ![Ruiyang\_Wang](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/ruiyang_wang/32/4818_2.png) [@Ruiyang\_Wang](https://discuss.ray.io/u/Ruiyang_Wang)
#### Post date: [October 9, 2024, 10:07pm UTC](https://discuss.ray.io/t/configure-runtime-env-for-multiple-local-packages/15975/2 "2024-10-09T22:07:12Z")

</div>

can you try this?

```auto
import ray
import DataTransformerUtils
import CustomLoggingUtils

ray.init(runtime_env={"py_modules": [DataTransformerUtils, CustomLoggingUtils]})

@ray.remote
def test_my_module():
    # No need to import modules inside this function.
    DataTransformerUtils.f()
    CustomLoggingUtils.g()

ray.get(test_my_module.remote())

```

---

<div class="post-metadata">

### Author: ![jascase901](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jascase901/32/6624_2.png) [@jascase901](https://discuss.ray.io/u/jascase901)
#### Post date: [October 14, 2024, 4:58pm UTC](https://discuss.ray.io/t/configure-runtime-env-for-multiple-local-packages/15975/3 "2024-10-14T16:58:59Z")

</div>

Thanks! This worked!

---

<div class="post-metadata">

### Author: ![Sam\_Chan](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sam_chan/32/5011_2.png) [@Sam\_Chan](https://discuss.ray.io/u/Sam_Chan)
#### Post date: [October 15, 2024, 5:14pm UTC](https://discuss.ray.io/t/configure-runtime-env-for-multiple-local-packages/15975/4 "2024-10-15T17:14:01Z")

</div>

We should update our docs here… @jascase901, since firsthand feedback from the user is most important, any ideas on where in our docs we should update this?

---

<div class="post-metadata">

### Author: ![jascase901](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/jascase901/32/6624_2.png) [@jascase901](https://discuss.ray.io/u/jascase901)
#### Post date: [October 15, 2024, 11:31pm UTC](https://discuss.ray.io/t/configure-runtime-env-for-multiple-local-packages/15975/5 "2024-10-15T23:31:26Z")

</div>

I think its already here [Environment Dependencies — Ray 2.37.0](https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#library-development) I just missed it.
