|
1 | 1 | """ |
2 | | - On OSX, the loader does not look at the current process to load |
3 | | - dylibs -- it insists on finding them itself, so we have to fixup |
4 | | - our binaries such that they resolve correctly. |
5 | | - |
6 | | - Two cases we need to deal with |
7 | | - - Local development/installation |
8 | | - - Building a wheel for pypi |
9 | | - |
10 | | - In development, we assume things are installed exactly where they will be |
11 | | - at runtime. |
12 | | - -> @loader_path/{relpath(final_location, dep_path)} |
13 | | - |
14 | | - For pypi wheels, we assume that installation is in site-packages, and |
15 | | - so are the libraries that this lib depends on. |
16 | | - -> @loader_path/{relpath(final_siterel, dep_siterel)} |
17 | | - |
18 | | - Notice these are the same IF you only build wheels in a virtualenv |
19 | | - that only has its dependencies installed in site-packages |
20 | | - |
21 | | -
|
22 | | - .. warning:: This will only work for the environment it's compiled in! |
23 | | - This basically means don't compile wheels in your development |
24 | | - environment, use a clean environment instead |
| 2 | +On OSX, the loader does not look at the current process to load |
| 3 | +dylibs -- it insists on finding them itself, so we have to fixup |
| 4 | +our binaries such that they resolve correctly. |
| 5 | +
|
| 6 | +Two cases we need to deal with |
| 7 | +- Local development/installation |
| 8 | +- Building a wheel for pypi |
| 9 | +
|
| 10 | +In development, we assume things are installed exactly where they will be |
| 11 | +at runtime. |
| 12 | + -> @loader_path/{relpath(final_location, dep_path)} |
| 13 | +
|
| 14 | +For pypi wheels, we assume that installation is in site-packages, and |
| 15 | +so are the libraries that this lib depends on. |
| 16 | + -> @loader_path/{relpath(final_siterel, dep_siterel)} |
| 17 | +
|
| 18 | +Notice these are the same IF you only build wheels in a virtualenv |
| 19 | +that only has its dependencies installed in site-packages |
| 20 | +
|
| 21 | +
|
| 22 | +.. warning:: This will only work for the environment it's compiled in! |
| 23 | + This basically means don't compile wheels in your development |
| 24 | + environment, use a clean environment instead |
25 | 25 |
|
26 | 26 | """ |
27 | 27 |
|
|
0 commit comments