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
3c0aa7e7
Kaydet (Commit)
3c0aa7e7
authored
Mar 21, 2004
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Patch #850977] Detect Tcl/Tk libraries on FreeBSD/OpenBSD. Bugfix candidate
üst
e240d9bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
setup.py
setup.py
+15
-7
No files found.
setup.py
Dosyayı görüntüle @
3c0aa7e7
...
...
@@ -973,17 +973,25 @@ class PyBuildExt(build_ext):
# Now check for the header files
if
tklib
and
tcllib
:
# Check for the include files on Debian, where
# Check for the include files on Debian
and {Free,Open}BSD
, where
# they're put in /usr/include/{tcl,tk}X.Y
debian_tcl_include
=
[
'/usr/include/tcl'
+
version
]
debian_tk_include
=
[
'/usr/include/tk'
+
version
]
+
\
debian_tcl_include
tcl_includes
=
find_file
(
'tcl.h'
,
inc_dirs
,
debian_tcl_include
)
tk_includes
=
find_file
(
'tk.h'
,
inc_dirs
,
debian_tk_include
)
dotversion
=
version
if
'.'
not
in
dotversion
and
"bsd"
in
sys
.
platform
.
lower
():
# OpenBSD and FreeBSD use Tcl/Tk library names like libtcl83.a,
# but the include subdirs are named like .../include/tcl8.3.
dotversion
=
dotversion
[:
-
1
]
+
'.'
+
dotversion
[
-
1
]
tcl_include_sub
=
[]
tk_include_sub
=
[]
for
dir
in
inc_dirs
:
tcl_include_sub
+=
[
dir
+
os
.
sep
+
"tcl"
+
dotversion
]
tk_include_sub
+=
[
dir
+
os
.
sep
+
"tk"
+
dotversion
]
tk_include_sub
+=
tcl_include_sub
tcl_includes
=
find_file
(
'tcl.h'
,
inc_dirs
,
tcl_include_sub
)
tk_includes
=
find_file
(
'tk.h'
,
inc_dirs
,
tk_include_sub
)
if
(
tcllib
is
None
or
tklib
is
None
or
tcl_includes
is
None
or
tk_includes
is
None
):
# Something's missing, so give up
self
.
announce
(
"INFO: Can't locate Tcl/Tk libs and/or headers"
,
2
)
return
# OK... everything seems to be present for Tcl/Tk.
...
...
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