Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
c04533b0
Commit
c04533b0
authored
Jan 06, 2017
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dlopen() flags problem with Python 3.6
parent
99d8d449
Pipeline
#241
failed with stage
in 181 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/graph_tool/dl_import.py
src/graph_tool/dl_import.py
+10
-6
No files found.
src/graph_tool/dl_import.py
View file @
c04533b0
...
@@ -24,17 +24,21 @@ import sys
...
@@ -24,17 +24,21 @@ import sys
import
os.path
import
os.path
try
:
try
:
from
DLFCN
import
RTLD_LAZY
,
RTLD_GLOBAL
from
os
import
RTLD_LAZY
,
RTLD_GLOBAL
dl_flags
=
RTLD_LAZY
|
RTLD_GLOBAL
dl_flags
=
RTLD_LAZY
|
RTLD_GLOBAL
except
ImportError
:
except
ImportError
:
# handle strange python installations, by importing from the deprecated dl
# module, otherwise from ctypes
try
:
try
:
from
dl
import
RTLD_LAZY
,
RTLD_GLOBAL
from
DLFCN
import
RTLD_LAZY
,
RTLD_GLOBAL
dl_flags
=
RTLD_LAZY
|
RTLD_GLOBAL
dl_flags
=
RTLD_LAZY
|
RTLD_GLOBAL
except
ImportError
:
except
ImportError
:
from
ctypes
import
RTLD_GLOBAL
# handle strange python installations, by importing from the deprecated dl
dl_flags
=
RTLD_GLOBAL
# module, otherwise from ctypes
try
:
from
dl
import
RTLD_LAZY
,
RTLD_GLOBAL
dl_flags
=
RTLD_LAZY
|
RTLD_GLOBAL
except
ImportError
:
from
ctypes
import
RTLD_GLOBAL
dl_flags
=
RTLD_GLOBAL
__all__
=
[
"dl_import"
]
__all__
=
[
"dl_import"
]
...
...
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