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
0df35b0a
Kaydet (Commit)
0df35b0a
authored
Agu 01, 2013
tarafından
doko@ubuntu.com
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
- Issue #18257: Fix readlink usage in python-config. Install the python
version again on Darwin.
üst
b2fcebb0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
Makefile.pre.in
Makefile.pre.in
+7
-0
NEWS
Misc/NEWS
+3
-0
python-config.in
Misc/python-config.in
+2
-0
python-config.sh.in
Misc/python-config.sh.in
+7
-2
No files found.
Makefile.pre.in
Dosyayı görüntüle @
0df35b0a
...
@@ -1201,6 +1201,13 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
...
@@ -1201,6 +1201,13 @@ python-config: $(srcdir)/Misc/python-config.in Misc/python-config.sh
sed
-e
"s,@EXENAME@,
$(BINDIR)
/python
$(LDVERSION)$(EXE)
,"
<
$(srcdir)
/Misc/python-config.in
>
python-config.py
sed
-e
"s,@EXENAME@,
$(BINDIR)
/python
$(LDVERSION)$(EXE)
,"
<
$(srcdir)
/Misc/python-config.in
>
python-config.py
# Replace makefile compat. variable references with shell script compat. ones;
$(VAR)
->
${
VAR
}
# Replace makefile compat. variable references with shell script compat. ones;
$(VAR)
->
${
VAR
}
sed
-e
's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g'
< Misc/python-config.sh
>
python-config
sed
-e
's,\$$(\([A-Za-z0-9_]*\)),\$$\{\1\},g'
< Misc/python-config.sh
>
python-config
# On Darwin, always use the python version of the script, the shell
# version doesn't use the compiler customizations that are provided
# in python
(
_osx_support.py
)
.
if
test
`
uname
-s
`
=
Darwin
;
then
\
cp
python-config.py python-config
;
\
fi
# Install the include files
# Install the include files
INCLDIRSTOMAKE
=
$(INCLUDEDIR)
$(CONFINCLUDEDIR)
$(INCLUDEPY)
$(CONFINCLUDEPY)
INCLDIRSTOMAKE
=
$(INCLUDEDIR)
$(CONFINCLUDEDIR)
$(INCLUDEPY)
$(CONFINCLUDEPY)
...
...
Misc/NEWS
Dosyayı görüntüle @
0df35b0a
...
@@ -737,6 +737,9 @@ IDLE
...
@@ -737,6 +737,9 @@ IDLE
Build
Build
-----
-----
-
Issue
#
18257
:
Fix
readlink
usage
in
python
-
config
.
Install
the
python
version
again
on
Darwin
.
-
Issue
#
18481
:
Add
C
coverage
reporting
with
gcov
and
lcov
.
A
new
make
target
-
Issue
#
18481
:
Add
C
coverage
reporting
with
gcov
and
lcov
.
A
new
make
target
"coverage-report"
creates
an
instrumented
Python
build
,
runs
unit
tests
"coverage-report"
creates
an
instrumented
Python
build
,
runs
unit
tests
and
creates
a
HTML
.
The
report
can
be
updated
with
"make coverage-lcov"
.
and
creates
a
HTML
.
The
report
can
be
updated
with
"make coverage-lcov"
.
...
...
Misc/python-config.in
Dosyayı görüntüle @
0df35b0a
#!@EXENAME@
#!@EXENAME@
# -*- python -*-
# -*- python -*-
# Keep this script in sync with python-config.sh.in
import
getopt
import
getopt
import
os
import
os
import
sys
import
sys
...
...
Misc/python-config.sh.in
Dosyayı görüntüle @
0df35b0a
#!/bin/sh
#!/bin/sh
# Keep this script in sync with python-config.in
exit_with_usage
()
exit_with_usage
()
{
{
echo
"Usage:
$0
--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir"
echo
"Usage:
$0
--prefix|--exec-prefix|--includes|--libs|--cflags|--ldflags|--extension-suffix|--help|--abiflags|--configdir"
...
@@ -15,7 +17,9 @@ installed_prefix ()
...
@@ -15,7 +17,9 @@ installed_prefix ()
{
{
RESULT
=
$(
dirname
$(
cd
$(
dirname
"
$1
"
)
&&
pwd
-P
))
RESULT
=
$(
dirname
$(
cd
$(
dirname
"
$1
"
)
&&
pwd
-P
))
if
which
readlink
>
/dev/null 2>&1
;
then
if
which
readlink
>
/dev/null 2>&1
;
then
RESULT
=
$(
readlink
-f
"
$RESULT
"
)
if
readlink
-f
"
$RESULT
"
>
/dev/null 2>&1
;
then
RESULT
=
$(
readlink
-f
"
$RESULT
"
)
fi
fi
fi
echo
$RESULT
echo
$RESULT
}
}
...
@@ -23,7 +27,8 @@ installed_prefix ()
...
@@ -23,7 +27,8 @@ installed_prefix ()
prefix_build
=
"@prefix@"
prefix_build
=
"@prefix@"
prefix_real
=
$(
installed_prefix
"
$0
"
)
prefix_real
=
$(
installed_prefix
"
$0
"
)
# Use sed to fix paths from their built to locations to their installed to locations.
# Use sed to fix paths from their built-to locations to their installed-to
# locations.
prefix
=
$(
echo
"
$prefix_build
"
|
sed
"s#
$prefix_build
#
$prefix_real
#"
)
prefix
=
$(
echo
"
$prefix_build
"
|
sed
"s#
$prefix_build
#
$prefix_real
#"
)
exec_prefix_build
=
"@exec_prefix@"
exec_prefix_build
=
"@exec_prefix@"
exec_prefix
=
$(
echo
"
$exec_prefix_build
"
|
sed
"s#
$exec_prefix_build
#
$prefix_real
#"
)
exec_prefix
=
$(
echo
"
$exec_prefix_build
"
|
sed
"s#
$exec_prefix_build
#
$prefix_real
#"
)
...
...
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