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
78ae8852
Commit
78ae8852
authored
Apr 30, 2020
by
Michael Davidsaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove now unused install_name_tool
parent
6883d6dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
src/setuptools_dso/dsocmd.py
src/setuptools_dso/dsocmd.py
+7
-13
No files found.
src/setuptools_dso/dsocmd.py
View file @
78ae8852
...
...
@@ -97,7 +97,6 @@ class dso2libmixin:
mypath
=
os
.
path
.
join
(
'.'
,
*
ext
.
name
.
split
(
'.'
)[:
-
1
])
soargs
=
set
()
self
.
_osx_changes
=
[]
for
dso
in
getattr
(
ext
,
'dsos'
,
[]):
log
.
debug
(
"Will link against DSO %s"
%
dso
)
...
...
@@ -140,12 +139,6 @@ class dso2libmixin:
else
:
raise
RuntimeError
(
"Something wierd happened. Please report. %s"
%
full
)
soargs
.
add
(
'-Wl,-rpath,@loader_path/%s'
%
os
.
path
.
relpath
(
dsopath
,
mypath
))
# In theory '-dylib_file A:B' asks the linker to do the equivlaent of:
# install_name_tool -change A B
# But this seems not to work. So we call install_name_tool below
found
=
True
break
...
...
@@ -154,7 +147,13 @@ class dso2libmixin:
ext
.
libraries
.
append
(
parts
[
-
1
])
if
sys
.
platform
not
in
(
'darwin'
,
"win32"
):
if
sys
.
platform
==
'win32'
:
pass
# nothing line -rpath available
elif
sys
.
platform
==
'darwin'
:
soargs
.
add
(
'-Wl,-rpath,@loader_path/%s'
%
os
.
path
.
relpath
(
dsopath
,
mypath
))
else
:
# Some versions of GCC will expand shell macros _internally_ when
# passing arguments to 'ld', and need '\$ORIGIN'. And some versions don't,
# and fail with '\$ORIGIN'.
...
...
@@ -172,11 +171,6 @@ class dso2libmixin:
if sys.platform == '
darwin
':
self.spawn(['
otool
', '
-
L
', ext_path])
for old, new in self._osx_changes:
self.spawn(['
install_name_tool
', '
-
change
', old, new, ext_path])
self.spawn(['
otool
', '
-
L
', ext_path])
class build_dso(dso2libmixin, Command):
description = "Build Dynamic Shared Object (DSO). non-python dynamic libraries (.so, .dylib, or .dll)"
...
...
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