Commit 81d56af
committed
ENH: support shared libraries inside packages
This drops the use of staged installs with `--destdir` in favor
of using `--prefix` for the install location. The problem is that
RPATHs in extension modules end up pointing to what Meson thinks is
the final install location (i.e., inside the prefix) rather than
to the staging directory.
`--destdir` seems meant for packaging, as an actual staging area,
while for `spin` the final install directory is `build-install`
(by default), there is no intent to later put this package into
`/usr` or `C:\`. Hence using `--prefix` seems like the correct
thing to do.
The one test change here is to a test that was incorrect.
`meson setup --prefix` expects an absolute path, and `/foobar`
isn't a path that exists or can be created.
Addresses the issue discussed in PR 238 - the `spin build` behavior
before this change cannot be made to work for SciPy, because the
internal shared library in `scipy.special` keeps breaking.
It should also address the problem discussed in issue spin#176.1 parent 794cabf commit 81d56af
2 files changed
+7
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 234 | | |
240 | 235 | | |
241 | 236 | | |
| |||
266 | 261 | | |
267 | 262 | | |
268 | 263 | | |
269 | | - | |
| 264 | + | |
270 | 265 | | |
271 | 266 | | |
272 | | - | |
| 267 | + | |
273 | 268 | | |
274 | 269 | | |
275 | 270 | | |
| |||
320 | 315 | | |
321 | 316 | | |
322 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
323 | 321 | | |
324 | 322 | | |
325 | 323 | | |
| |||
385 | 383 | | |
386 | 384 | | |
387 | 385 | | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | 386 | | |
393 | 387 | | |
394 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
0 commit comments