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
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
Show 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."""
...
@@ -7,6 +7,7 @@ building Cython extension modules."""
__revision__
=
"$Id:$"
__revision__
=
"$Id:$"
import
inspect
import
sys
import
sys
import
os
import
os
from
distutils.errors
import
DistutilsPlatformError
from
distutils.errors
import
DistutilsPlatformError
...
@@ -16,7 +17,12 @@ from distutils.command import build_ext as _build_ext
...
@@ -16,7 +17,12 @@ from distutils.command import build_ext as _build_ext
from
distutils
import
sysconfig
from
distutils
import
sysconfig
import
warnings
import
warnings
warnings
.
warn
(
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 "
"Cython.Distutils.build_ext does not properly handle dependencies "
"and is deprectated. Use Cython.Build.build_ext instead."
)
"and is deprectated. Use Cython.Build.build_ext instead."
)
...
...
setup.py
View file @
92147993
...
@@ -12,9 +12,6 @@ import sys
...
@@ -12,9 +12,6 @@ import sys
import
platform
import
platform
is_cpython
=
platform
.
python_implementation
()
==
'CPython'
is_cpython
=
platform
.
python_implementation
()
==
'CPython'
# Suppress warning.
sys
.
modules
[
Extension
.
__module__
].
have_pyrex
=
lambda
:
True
if
sys
.
platform
==
"darwin"
:
if
sys
.
platform
==
"darwin"
:
# Don't create resource files on OS X tar.
# Don't create resource files on OS X tar.
os
.
environ
[
'COPY_EXTENDED_ATTRIBUTES_DISABLE'
]
=
'true'
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