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
2432b0b3
Kaydet (Commit)
2432b0b3
authored
Şub 13, 2009
tarafından
Tarek Ziadé
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #4524: distutils build_script command failed with --with-suffix=3
üst
275958aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
build_scripts.py
Lib/distutils/command/build_scripts.py
+2
-2
test_build_scripts.py
Lib/distutils/tests/test_build_scripts.py
+28
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/distutils/command/build_scripts.py
Dosyayı görüntüle @
2432b0b3
...
...
@@ -102,8 +102,8 @@ class build_scripts (Command):
outf
.
write
(
"#!
%
s
%
s
\n
"
%
(
os
.
path
.
join
(
sysconfig
.
get_config_var
(
"BINDIR"
),
"python"
+
sysconfig
.
get_config_var
(
"VERSION"
)
+
sysconfig
.
get_config_var
(
"EXE"
)),
"python
%
s
%
s"
%
(
sysconfig
.
get_config_var
(
"VERSION"
),
sysconfig
.
get_config_var
(
"EXE"
)
)),
post_interp
))
outf
.
writelines
(
f
.
readlines
())
outf
.
close
()
...
...
Lib/distutils/tests/test_build_scripts.py
Dosyayı görüntüle @
2432b0b3
...
...
@@ -5,6 +5,7 @@ import unittest
from
distutils.command.build_scripts
import
build_scripts
from
distutils.core
import
Distribution
from
distutils
import
sysconfig
from
distutils.tests
import
support
...
...
@@ -73,6 +74,33 @@ class BuildScriptsTestCase(support.TempdirManager,
f
.
write
(
text
)
f
.
close
()
def
test_version_int
(
self
):
source
=
self
.
mkdtemp
()
target
=
self
.
mkdtemp
()
expected
=
self
.
write_sample_scripts
(
source
)
cmd
=
self
.
get_build_scripts_cmd
(
target
,
[
os
.
path
.
join
(
source
,
fn
)
for
fn
in
expected
])
cmd
.
finalize_options
()
# http://bugs.python.org/issue4524
#
# On linux-g++-32 with command line `./configure --enable-ipv6
# --with-suffix=3`, python is compiled okay but the build scripts
# failed when writing the name of the executable
old
=
sysconfig
.
_config_vars
.
get
(
'VERSION'
)
sysconfig
.
_config_vars
[
'VERSION'
]
=
4
try
:
cmd
.
run
()
finally
:
if
old
is
not
None
:
sysconfig
.
_config_vars
[
'VERSION'
]
=
old
built
=
os
.
listdir
(
target
)
for
name
in
expected
:
self
.
assert_
(
name
in
built
)
def
test_suite
():
return
unittest
.
makeSuite
(
BuildScriptsTestCase
)
...
...
Misc/NEWS
Dosyayı görüntüle @
2432b0b3
...
...
@@ -155,6 +155,9 @@ Core and Builtins
Library
-------
- Issue #4524: distutils build_script command failed with --with-suffix=3.
Initial patch by Amaury Forgeot d'Arc.
- Issue #2461: added tests for distutils.util
- Issue #1008086: Fixed socket.inet_aton() to always return 4 bytes even on
...
...
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