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
5b150279
Commit
5b150279
authored
Jul 08, 2018
by
Michael Davidsaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
33987212
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
src/setuptools_dso/dsocmd.py
src/setuptools_dso/dsocmd.py
+5
-8
No files found.
src/setuptools_dso/dsocmd.py
View file @
5b150279
...
...
@@ -261,16 +261,17 @@ class build_dso(dso2libmixin, Command):
if
sys
.
platform
==
'darwin'
:
# we always want to produce relocatable (movable) binaries
#
TODO: this only works when library and extension are in the same directory
#
this install_name will be replaced below (cf. 'install_name_tool')
extra_args
.
extend
([
'-install_name'
,
'@loader_path/%s'
%
os
.
path
.
basename
(
solib
)])
elif
sys
.
platform
!=
"win32"
and
baselib
!=
solib
:
extra_args
.
extend
([
'-Wl,-h,%s'
%
os
.
path
.
basename
(
solib
)])
if
sys
.
platform
==
"win32"
:
el
if
sys
.
platform
==
"win32"
:
# The .lib is considered "temporary" for extensions, but not for us
# so we pass export_symbols=None and put it along side the .dll
extra_args
.
append
(
'/IMPLIB:%s.lib'
%
(
os
.
path
.
splitext
(
outlib
)[
0
]))
elif
baselib
!=
solib
:
# ELF
extra_args
.
extend
([
'-Wl,-h,%s'
%
os
.
path
.
basename
(
solib
)])
extra_args
.
extend
(
dso
.
extra_link_args
or
[])
language
=
dso
.
language
or
self
.
compiler
.
detect_language
(
sources
)
...
...
@@ -298,10 +299,6 @@ class build_ext(dso2libmixin, _build_ext):
def
finalize_options
(
self
):
_build_ext
.
finalize_options
(
self
)
# MSVC build puts .lib in build/temp.*
# others put .so in build/lib.*
#self.lib_temp = self.build_temp if sys.platform == "win32" else self.build_lib
self
.
include_dirs
=
massage_dir_list
(
self
.
build_temp
,
self
.
include_dirs
or
[])
self
.
library_dirs
=
massage_dir_list
(
self
.
build_lib
,
self
.
library_dirs
or
[])
...
...
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