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
0ff98b93
Kaydet (Commit)
0ff98b93
authored
Kas 14, 2002
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Bug #550364] Add get_python_version()
üst
9a38dcf0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
sysconfig.py
Lib/distutils/sysconfig.py
+9
-1
No files found.
Lib/distutils/sysconfig.py
Dosyayı görüntüle @
0ff98b93
...
...
@@ -35,6 +35,14 @@ python_build = os.path.isfile(landmark)
del
argv0_path
,
landmark
def
get_python_version
():
"""Return a string containing the major and minor Python version,
leaving off the patchlevel. Sample return values could be '1.5'
or '2.2'.
"""
return
sys
.
version
[:
3
]
def
get_python_inc
(
plat_specific
=
0
,
prefix
=
None
):
"""Return the directory containing installed Python header files.
...
...
@@ -93,7 +101,7 @@ def get_python_lib(plat_specific=0, standard_lib=0, prefix=None):
if
os
.
name
==
"posix"
:
libpython
=
os
.
path
.
join
(
prefix
,
"lib"
,
"python"
+
sys
.
version
[:
3
]
)
"lib"
,
"python"
+
get_python_version
()
)
if
standard_lib
:
return
libpython
else
:
...
...
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