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
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
Gwenaël Samain
cython
Commits
439c7b83
Commit
439c7b83
authored
8 years ago
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid distutils warning for pyximport.
parent
5858d358
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Cython/Distutils/old_build_ext.py
Cython/Distutils/old_build_ext.py
+6
-3
No files found.
Cython/Distutils/old_build_ext.py
View file @
439c7b83
...
...
@@ -18,10 +18,13 @@ from distutils import sysconfig
import
warnings
try
:
from_setuptools
=
'setuptools/extension.py'
in
inspect
.
getouterframes
(
inspect
.
currentframe
(),
2
)[
2
][
1
]
frames
=
inspect
.
getouterframes
(
inspect
.
currentframe
(),
2
)
from_setuptools
=
'setuptools/extension.py'
in
frames
[
2
][
1
]
from_pyximport
=
'pyximport/pyxbuild.py'
in
frames
[
1
][
1
]
except
Exception
:
from_setuptools
=
False
if
not
from_setuptools
:
from_setuptools
=
from_pyximport
=
False
if
not
from_setuptools
and
not
from_pyximport
:
warnings
.
warn
(
"Cython.Distutils.old_build_ext does not properly handle dependencies "
"and is deprectated."
)
...
...
This diff is collapsed.
Click to expand it.
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