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
dc46175d
Kaydet (Commit)
dc46175d
authored
Kas 06, 2002
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add --check-tkinter to setup.py. Install IDLE. Fixes #634078.
üst
eb58f5d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
6 deletions
+31
-6
Makefile.pre.in
Makefile.pre.in
+5
-1
NEWS
Misc/NEWS
+2
-0
setup.py
Tools/idle/setup.py
+24
-5
No files found.
Makefile.pre.in
Dosyayı görüntüle @
dc46175d
...
...
@@ -530,7 +530,7 @@ memtest: all platform
$(TESTPYTHON)
$(TESTPROG)
$(MEMTESTOPTS)
# Install everything
install
:
altinstall bininstall maninstall
install
:
altinstall bininstall maninstall
idleinstall
# Install almost everything without disturbing previous versions
altinstall
:
altbininstall libinstall inclinstall libainstall
\
...
...
@@ -826,6 +826,10 @@ frameworkinstallunixtools:
$(MAKE)
-f
$(srcdir)
/Mac/OSX/Makefile installunixtools
\
srcdir
=
$(srcdir)
builddir
=
.
dstroot
=
$(PYTHONFRAMEWORKPREFIX)
/../..
# This installs IDLE
idleinstall
:
SRCDIR
=
$(srcdir)
./
$(BUILDPYTHON)
$(srcdir)
/Tools/idle/setup.py
install
--check-tkinter
# Build the toplevel Makefile
Makefile.pre
:
Makefile.pre.in config.status
CONFIG_FILES
=
Makefile.pre
CONFIG_HEADERS
=
$(SHELL)
config.status
...
...
Misc/NEWS
Dosyayı görüntüle @
dc46175d
...
...
@@ -582,6 +582,8 @@ Tools/Demos
Build
-----
-
On
Unix
,
IDLE
is
now
installed
automatically
.
-
The
fpectl
module
is
not
built
by
default
;
it
's dangerous or useless
except in the hands of experts.
...
...
Tools/idle/setup.py
Dosyayı görüntüle @
dc46175d
import
os
,
glob
import
os
,
glob
,
sys
from
distutils.core
import
setup
from
distutils.command.build_py
import
build_py
from
distutils.command.install_lib
import
install_lib
import
idlever
try
:
pos
=
sys
.
argv
.
index
(
"--check-tkinter"
)
except
ValueError
:
pass
else
:
del
sys
.
argv
[
pos
]
try
:
import
_tkinter
except
ImportError
:
print
>>
sys
.
stderr
,
"Cannot install IDLE without _tkinter"
raise
SystemExit
try
:
package_dir
=
os
.
path
.
join
(
os
.
environ
[
"SRCDIR"
],
"Tools"
,
"idle"
)
except
KeyError
:
package_dir
=
"."
# name of idle package
idlelib
=
"idlelib"
...
...
@@ -24,7 +41,8 @@ class idle_build_py(build_py):
outfile
=
self
.
get_plain_outfile
(
self
.
build_lib
,
[
idlelib
],
name
)
dir
=
os
.
path
.
dirname
(
outfile
)
self
.
mkpath
(
dir
)
self
.
copy_file
(
name
,
outfile
,
preserve_mode
=
0
)
self
.
copy_file
(
os
.
path
.
join
(
package_dir
,
name
),
outfile
,
preserve_mode
=
0
)
for
name
in
Icons
:
outfile
=
self
.
get_plain_outfile
(
self
.
build_lib
,
[
idlelib
,
"Icons"
],
name
)
...
...
@@ -35,7 +53,8 @@ class idle_build_py(build_py):
def
get_source_files
(
self
):
# returns the .py files, the .txt files, and the icons
icons
=
[
os
.
path
.
join
(
"Icons"
,
name
)
for
name
in
Icons
]
icons
=
[
os
.
path
.
join
(
package_dir
,
"Icons"
,
name
)
for
name
in
Icons
]
txts
=
[
os
.
path
.
join
(
package_dir
,
name
)
for
name
in
txt_files
]
return
build_py
.
get_source_files
(
self
)
+
txt_files
+
icons
def
get_outputs
(
self
,
include_bytecode
=
1
):
...
...
@@ -75,7 +94,7 @@ as well as a Python shell window and a debugger.""",
cmdclass
=
{
'build_py'
:
idle_build_py
,
'install_lib'
:
idle_install_lib
},
package_dir
=
{
idlelib
:
'.'
},
package_dir
=
{
idlelib
:
package_dir
},
packages
=
[
idlelib
],
scripts
=
[
'idle'
]
scripts
=
[
os
.
path
.
join
(
package_dir
,
'idle'
)
]
)
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