Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
895ee241
Kaydet (Commit)
895ee241
authored
Mar 06, 2010
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
files used by win32 tests
üst
7e48ff8e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
setuptools_build_ext.py
Lib/distutils/tests/setuptools_build_ext.py
+0
-0
setuptools_extension.py
Lib/distutils/tests/setuptools_extension.py
+51
-0
No files found.
Lib/distutils/tests/setuptools_build_ext.py
0 → 100644
Dosyayı görüntüle @
895ee241
This diff is collapsed.
Click to expand it.
Lib/distutils/tests/setuptools_extension.py
0 → 100644
Dosyayı görüntüle @
895ee241
from
distutils.core
import
Extension
as
_Extension
from
distutils.core
import
Distribution
as
_Distribution
def
_get_unpatched
(
cls
):
"""Protect against re-patching the distutils if reloaded
Also ensures that no other distutils extension monkeypatched the distutils
first.
"""
while
cls
.
__module__
.
startswith
(
'setuptools'
):
cls
,
=
cls
.
__bases__
if
not
cls
.
__module__
.
startswith
(
'distutils'
):
raise
AssertionError
(
"distutils has already been patched by
%
r"
%
cls
)
return
cls
_Distribution
=
_get_unpatched
(
_Distribution
)
_Extension
=
_get_unpatched
(
_Extension
)
try
:
from
Pyrex.Distutils.build_ext
import
build_ext
except
ImportError
:
have_pyrex
=
False
else
:
have_pyrex
=
True
class
Extension
(
_Extension
):
"""Extension that uses '.c' files in place of '.pyx' files"""
if
not
have_pyrex
:
# convert .pyx extensions to .c
def
__init__
(
self
,
*
args
,
**
kw
):
_Extension
.
__init__
(
self
,
*
args
,
**
kw
)
sources
=
[]
for
s
in
self
.
sources
:
if
s
.
endswith
(
'.pyx'
):
sources
.
append
(
s
[:
-
3
]
+
'c'
)
else
:
sources
.
append
(
s
)
self
.
sources
=
sources
class
Library
(
Extension
):
"""Just like a regular Extension, but built as a library instead"""
import
sys
,
distutils
.
core
,
distutils
.
extension
distutils
.
core
.
Extension
=
Extension
distutils
.
extension
.
Extension
=
Extension
if
'distutils.command.build_ext'
in
sys
.
modules
:
sys
.
modules
[
'distutils.command.build_ext'
]
.
Extension
=
Extension
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