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
ae7d7fa0
Kaydet (Commit)
ae7d7fa0
authored
Eyl 20, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Reverted changes which were inadvertently committed.
üst
61c3f0da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
17 deletions
+12
-17
sysconfig.py
Lib/distutils/sysconfig.py
+11
-15
sysconfig.py
Lib/sysconfig.py
+1
-2
No files found.
Lib/distutils/sysconfig.py
Dosyayı görüntüle @
ae7d7fa0
...
...
@@ -56,18 +56,6 @@ def get_python_version():
"""
return
sys
.
version
[:
3
]
def
_get_build_dir
(
name
,
plat_specific
):
# Assume the executable is in the build directory. The
# pyconfig.h file should be in the same directory. Since
# the build directory may not be the source directory, we
# must use "srcdir" from the makefile to find the "Include"
# directory.
base
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
sys
.
executable
))
if
plat_specific
:
return
base
else
:
thedir
=
os
.
path
.
join
(
get_config_var
(
'srcdir'
),
name
)
return
os
.
path
.
normpath
(
thedir
)
def
get_python_inc
(
plat_specific
=
0
,
prefix
=
None
):
"""Return the directory containing installed Python header files.
...
...
@@ -84,7 +72,17 @@ def get_python_inc(plat_specific=0, prefix=None):
prefix
=
plat_specific
and
EXEC_PREFIX
or
PREFIX
if
os
.
name
==
"posix"
:
if
python_build
:
return
_get_build_dir
(
'Include'
,
plat_specific
)
# Assume the executable is in the build directory. The
# pyconfig.h file should be in the same directory. Since
# the build directory may not be the source directory, we
# must use "srcdir" from the makefile to find the "Include"
# directory.
base
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
sys
.
executable
))
if
plat_specific
:
return
base
else
:
incdir
=
os
.
path
.
join
(
get_config_var
(
'srcdir'
),
'Include'
)
return
os
.
path
.
normpath
(
incdir
)
return
os
.
path
.
join
(
prefix
,
"include"
,
"python"
+
get_python_version
())
elif
os
.
name
==
"nt"
:
return
os
.
path
.
join
(
prefix
,
"include"
)
...
...
@@ -119,8 +117,6 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
prefix
=
plat_specific
and
EXEC_PREFIX
or
PREFIX
if
os
.
name
==
"posix"
:
if
python_build
:
return
_get_build_dir
(
'Lib'
,
plat_specific
)
libpython
=
os
.
path
.
join
(
prefix
,
"lib"
,
"python"
+
get_python_version
())
if
standard_lib
:
...
...
Lib/sysconfig.py
Dosyayı görüntüle @
ae7d7fa0
...
...
@@ -123,9 +123,8 @@ _PYTHON_BUILD = is_python_build()
if
_PYTHON_BUILD
:
for
scheme
in
(
'posix_prefix'
,
'posix_home'
):
_INSTALL_SCHEMES
[
scheme
][
'include'
]
=
'{
projectbase
}/Include'
_INSTALL_SCHEMES
[
scheme
][
'include'
]
=
'{
srcdir
}/Include'
_INSTALL_SCHEMES
[
scheme
][
'platinclude'
]
=
'{projectbase}/.'
_INSTALL_SCHEMES
[
scheme
][
'stdlib'
]
=
'{projectbase}/Lib'
def
_subst_vars
(
s
,
local_vars
):
try
:
...
...
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