Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
0befa5f7
Commit
0befa5f7
authored
Apr 11, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
blacklist distutils.extension in pyximport
parent
3dd2aed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pyximport/pyximport.py
pyximport/pyximport.py
+3
-3
No files found.
pyximport/pyximport.py
View file @
0befa5f7
...
@@ -261,7 +261,7 @@ class PyImporter(PyxImporter):
...
@@ -261,7 +261,7 @@ class PyImporter(PyxImporter):
self
.
super
=
super
(
PyImporter
,
self
)
self
.
super
=
super
(
PyImporter
,
self
)
self
.
super
.
__init__
(
extension
=
'.py'
,
pyxbuild_dir
=
pyxbuild_dir
)
self
.
super
.
__init__
(
extension
=
'.py'
,
pyxbuild_dir
=
pyxbuild_dir
)
self
.
uncompilable_modules
=
{}
self
.
uncompilable_modules
=
{}
self
.
blocked_modules
=
[
'Cython'
]
self
.
blocked_modules
=
[
'Cython'
,
'distutils.extension'
]
def
find_module
(
self
,
fullname
,
package_path
=
None
):
def
find_module
(
self
,
fullname
,
package_path
=
None
):
if
fullname
in
sys
.
modules
:
if
fullname
in
sys
.
modules
:
...
@@ -288,13 +288,13 @@ class PyImporter(PyxImporter):
...
@@ -288,13 +288,13 @@ class PyImporter(PyxImporter):
try
:
try
:
importer
=
self
.
super
.
find_module
(
fullname
,
package_path
)
importer
=
self
.
super
.
find_module
(
fullname
,
package_path
)
if
importer
is
not
None
:
if
importer
is
not
None
:
if
DEBUG_IMPORT
:
print
(
"importer found"
)
try
:
try
:
if
importer
.
init_path
:
if
importer
.
init_path
:
path
=
importer
.
init_path
path
=
importer
.
init_path
else
:
else
:
path
=
importer
.
path
path
=
importer
.
path
if
DEBUG_IMPORT
:
print
(
"importer found path %s"
%
path
)
build_module
(
fullname
,
path
,
build_module
(
fullname
,
path
,
pyxbuild_dir
=
self
.
pyxbuild_dir
)
pyxbuild_dir
=
self
.
pyxbuild_dir
)
except
Exception
,
e
:
except
Exception
,
e
:
...
...
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