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
92147993
Commit
92147993
authored
Sep 06, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress deprecation warning from setuptools import.
parent
d676b62b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
Cython/Distutils/build_ext.py
Cython/Distutils/build_ext.py
+9
-3
setup.py
setup.py
+0
-3
No files found.
Cython/Distutils/build_ext.py
View file @
92147993
...
...
@@ -7,6 +7,7 @@ building Cython extension modules."""
__revision__
=
"$Id:$"
import
inspect
import
sys
import
os
from
distutils.errors
import
DistutilsPlatformError
...
...
@@ -16,9 +17,14 @@ from distutils.command import build_ext as _build_ext
from
distutils
import
sysconfig
import
warnings
warnings
.
warn
(
"Cython.Distutils.build_ext does not properly handle dependencies "
"and is deprectated. Use Cython.Build.build_ext instead."
)
try
:
from_setuptools
=
'setuptools/extension.py'
in
inspect
.
getouterframes
(
inspect
.
currentframe
(),
2
)[
2
][
1
]
except
Exception
:
from_setuptools
=
False
if
not
from_setuptools
:
warnings
.
warn
(
"Cython.Distutils.build_ext does not properly handle dependencies "
"and is deprectated. Use Cython.Build.build_ext instead."
)
try
:
from
__builtin__
import
basestring
...
...
setup.py
View file @
92147993
...
...
@@ -12,9 +12,6 @@ import sys
import
platform
is_cpython
=
platform
.
python_implementation
()
==
'CPython'
# Suppress warning.
sys
.
modules
[
Extension
.
__module__
].
have_pyrex
=
lambda
:
True
if
sys
.
platform
==
"darwin"
:
# Don't create resource files on OS X tar.
os
.
environ
[
'COPY_EXTENDED_ATTRIBUTES_DISABLE'
]
=
'true'
...
...
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