Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
8de627e1
"docs/vscode:/vscode.git/clone" did not exist on "d234498c2755bc3040bfdb01e06ab458b25d59c1"
Commit
8de627e1
authored
Jul 06, 2017
by
Ian Philips
Committed by
Davis E. King
Jul 06, 2017
Browse files
added check for libpython_version#m.dylib present in some virtual environments (#687)
parent
26524fe7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
setup.py
setup.py
+4
-0
No files found.
setup.py
View file @
8de627e1
...
...
@@ -526,7 +526,11 @@ class build(_build):
# this checks the sysconfig and will correctly pick up a brewed python lib
# e.g. in /usr/local/Cellar
py_ver
=
get_python_version
()
# check: in some virtual environments the libpython has the form "libpython_#m.dylib
py_lib
=
os
.
path
.
join
(
get_config_var
(
'LIBDIR'
),
'libpython'
+
py_ver
+
'.dylib'
)
if
not
os
.
path
.
isfile
(
py_lib
):
py_lib
=
os
.
path
.
join
(
get_config_var
(
'LIBDIR'
),
'libpython'
+
py_ver
+
'm.dylib'
)
cmake_extra_arch
+=
[
'-DPYTHON_LIBRARY={lib}'
.
format
(
lib
=
py_lib
)]
if
sys
.
platform
==
"win32"
:
...
...
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