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
Kirill Smelkov
cython
Commits
17481625
Commit
17481625
authored
3 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove an expensive warning that is never shown.
Closes
https://github.com/cython/cython/pull/4224
parent
e10bd48a
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Cython/Distutils/old_build_ext.py
Cython/Distutils/old_build_ext.py
+8
-3
No files found.
Cython/Distutils/old_build_ext.py
View file @
17481625
...
...
@@ -8,7 +8,6 @@ Note that this module is deprecated. Use cythonize() instead.
__revision__
=
"$Id:$"
import
inspect
import
sys
import
os
from
distutils.errors
import
DistutilsPlatformError
...
...
@@ -16,7 +15,6 @@ from distutils.dep_util import newer, newer_group
from
distutils
import
log
from
distutils.command
import
build_ext
as
_build_ext
from
distutils
import
sysconfig
import
warnings
try
:
...
...
@@ -25,6 +23,13 @@ except ImportError:
basestring
=
str
# FIXME: the below does not work as intended since importing 'Cython.Distutils' already
# imports this module through 'Cython/Distutils/build_ext.py', so the condition is
# always false and never prints the warning.
"""
import inspect
import warnings
def _check_stack(path):
try:
for frame in inspect.getouterframes(inspect.currentframe(), 0):
...
...
@@ -41,7 +46,7 @@ if (not _check_stack('setuptools/extensions.py')
warnings.warn(
"Cython.Distutils.old_build_ext does not properly handle dependencies "
"and is deprecated.")
"""
extension_name_re
=
_build_ext
.
extension_name_re
...
...
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