# python3 and macOS

**URL:** https://discourse.vtk.org/t/python3-and-macos/6912
**Category:** Development
**Created:** [October 18, 2021, 7:12pm UTC](https://discourse.vtk.org/t/python3-and-macos/6912 "2021-10-18T19:12:28Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [October 18, 2021, 10:28pm UTC](https://discourse.vtk.org/t/python3-and-macos/6912/3 "2021-10-18T22:28:48Z")

</div>

This is the “terrible rpath” issue on macOS. The library says “you need to use rpath to use me” (with the `@rpath/` library id), but nothing says what path to actually add. Here, you’ll need to do it manually. See [how CI does it](https://gitlab.kitware.com/vtk/vtk/-/blob/cf341212cdd0989c9ac19ffc1f77a7d24eaeb02a/.gitlab/ci/configure_macos.cmake#L25-27).

I have discussed it in the CMake Discourse before (and maybe even an issue), but libraries will need an `IMPORTED_RPATH` property to be set so that CMake can know to add the right `-Wl,-rpath,` flags to the linker.

---

_[View the full topic](https://discourse.vtk.org/t/python3-and-macos/6912)._
