Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools_dso
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
setuptools_dso
Commits
adb9721b
Commit
adb9721b
authored
Jul 08, 2018
by
Michael Davidsaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx fun...
parent
07c4a330
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/setuptools_dso/dsocmd.py
src/setuptools_dso/dsocmd.py
+12
-0
No files found.
src/setuptools_dso/dsocmd.py
View file @
adb9721b
...
...
@@ -255,6 +255,7 @@ class build_ext(_build_ext):
pass
found
=
False
osx_changes
=
[]
for
candidate
in
dsosearch
:
C
=
os
.
path
.
join
(
candidate
,
libname
)
if
not
os
.
path
.
isfile
(
C
):
...
...
@@ -273,6 +274,8 @@ class build_ext(_build_ext):
else
:
raise
RuntimeError
(
"Something wierd happened. Please report. %s"
%
full
)
osx_changes
.
append
((
'@loader_path/'
+
fullname
,
'@loader_path/%s/%s'
%
(
os
.
path
.
relpath
(
dsopath
,
mypath
),
fullname
)))
# -dylib_file A:B asks the linker to do the equivlaent of:
# install_name_tool -change A B
ext
.
extra_link_args
.
extend
([
...
...
@@ -302,3 +305,12 @@ class build_ext(_build_ext):
[
self
.
mkpath
(
D
)
for
D
in
ext
.
library_dirs
]
_build_ext
.
build_extension
(
self
,
ext
)
if
sys
.
platform
==
'darwin'
:
ext_path
=
self
.
get_ext_fullpath
(
ext
.
name
)
self
.
spawn
([
'otool'
,
'-L'
,
ext_path
])
for
old
,
new
in
osx_changes
:
self
.
spawn
([
'install_name_tool'
,
'-change'
,
old
,
new
,
ext_path
])
self
.
spawn
([
'otool'
,
'-L'
,
ext_path
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment