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
7e203498
Kaydet (Commit)
7e203498
authored
May 27, 2012
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed _sys_home computation and added diagnostics for Windows buildbot failures.
üst
0b43bcf5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
sysconfig.py
Lib/distutils/sysconfig.py
+2
-0
sysconfig.py
Lib/sysconfig.py
+2
-1
test_venv.py
Lib/test/test_venv.py
+4
-1
No files found.
Lib/distutils/sysconfig.py
Dosyayı görüntüle @
7e203498
...
@@ -50,6 +50,8 @@ _sys_home = getattr(sys, '_home', None)
...
@@ -50,6 +50,8 @@ _sys_home = getattr(sys, '_home', None)
if
_sys_home
and
os
.
name
==
'nt'
and
\
if
_sys_home
and
os
.
name
==
'nt'
and
\
_sys_home
.
lower
()
.
endswith
((
'pcbuild'
,
'pcbuild
\\
amd64'
)):
_sys_home
.
lower
()
.
endswith
((
'pcbuild'
,
'pcbuild
\\
amd64'
)):
_sys_home
=
os
.
path
.
dirname
(
_sys_home
)
_sys_home
=
os
.
path
.
dirname
(
_sys_home
)
if
_sys_home
.
endswith
(
'pcbuild'
):
# must be amd64
_sys_home
=
os
.
path
.
dirname
(
_sys_home
)
def
_python_build
():
def
_python_build
():
if
_sys_home
:
if
_sys_home
:
return
_is_python_source_dir
(
_sys_home
)
return
_is_python_source_dir
(
_sys_home
)
...
...
Lib/sysconfig.py
Dosyayı görüntüle @
7e203498
...
@@ -107,7 +107,8 @@ _sys_home = getattr(sys, '_home', None)
...
@@ -107,7 +107,8 @@ _sys_home = getattr(sys, '_home', None)
if
_sys_home
and
os
.
name
==
'nt'
and
\
if
_sys_home
and
os
.
name
==
'nt'
and
\
_sys_home
.
lower
()
.
endswith
((
'pcbuild'
,
'pcbuild
\\
amd64'
)):
_sys_home
.
lower
()
.
endswith
((
'pcbuild'
,
'pcbuild
\\
amd64'
)):
_sys_home
=
os
.
path
.
dirname
(
_sys_home
)
_sys_home
=
os
.
path
.
dirname
(
_sys_home
)
if
_sys_home
.
endswith
(
'pcbuild'
):
# must be amd64
_sys_home
=
os
.
path
.
dirname
(
_sys_home
)
def
is_python_build
(
check_home
=
False
):
def
is_python_build
(
check_home
=
False
):
if
check_home
and
_sys_home
:
if
check_home
and
_sys_home
:
return
_is_python_source_dir
(
_sys_home
)
return
_is_python_source_dir
(
_sys_home
)
...
...
Lib/test/test_venv.py
Dosyayı görüntüle @
7e203498
...
@@ -76,7 +76,10 @@ class BasicTest(BaseTest):
...
@@ -76,7 +76,10 @@ class BasicTest(BaseTest):
data
=
self
.
get_text_file_contents
(
self
.
bindir
,
self
.
ps3name
)
data
=
self
.
get_text_file_contents
(
self
.
bindir
,
self
.
ps3name
)
self
.
assertTrue
(
data
.
startswith
(
'#!
%
s
%
s'
%
(
self
.
env_dir
,
os
.
sep
)))
self
.
assertTrue
(
data
.
startswith
(
'#!
%
s
%
s'
%
(
self
.
env_dir
,
os
.
sep
)))
fn
=
self
.
get_env_file
(
self
.
bindir
,
self
.
exe
)
fn
=
self
.
get_env_file
(
self
.
bindir
,
self
.
exe
)
self
.
assertTrue
(
os
.
path
.
exists
(
fn
),
'File
%
r exists'
%
fn
)
if
not
os
.
path
.
exists
(
fn
):
# diagnostics for Windows buildbot failures
print
(
'Contents of
%
r:'
%
self
.
bindir
)
print
(
'
%
r'
%
os
.
listdir
(
self
.
bindir
))
self
.
assertTrue
(
os
.
path
.
exists
(
fn
),
'File
%
r should exist.'
%
fn
)
def
test_overwrite_existing
(
self
):
def
test_overwrite_existing
(
self
):
"""
"""
...
...
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