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
e01149cb
Kaydet (Commit)
e01149cb
authored
Şub 18, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Renamed 'set_default_options()' to 'initialize_options()', and
'set_final_options()' to 'finalize_options()'.
üst
4c96db1a
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
28 additions
and
28 deletions
+28
-28
build.py
Lib/distutils/command/build.py
+2
-2
build_clib.py
Lib/distutils/command/build_clib.py
+4
-4
build_ext.py
Lib/distutils/command/build_ext.py
+5
-5
build_lib.py
Lib/distutils/command/build_lib.py
+4
-4
build_py.py
Lib/distutils/command/build_py.py
+2
-2
install.py
Lib/distutils/command/install.py
+3
-3
install_ext.py
Lib/distutils/command/install_ext.py
+2
-2
install_lib.py
Lib/distutils/command/install_lib.py
+2
-2
install_py.py
Lib/distutils/command/install_py.py
+2
-2
sdist.py
Lib/distutils/command/sdist.py
+2
-2
No files found.
Lib/distutils/command/build.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -25,7 +25,7 @@ class build (Command):
"compile extensions and libraries with debugging information"
),
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
self
.
build_base
=
'build'
# these are decided only after 'build_base' has its final value
# (unless overridden by the user or client)
...
...
@@ -33,7 +33,7 @@ class build (Command):
self
.
build_platlib
=
None
self
.
debug
=
None
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
# 'build_lib' and 'build_platlib' just default to 'lib' and
# 'platlib' under the base build directory
if
self
.
build_lib
is
None
:
...
...
Lib/distutils/command/build_clib.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -33,7 +33,7 @@ class build_lib (Command):
"compile with debugging information"
),
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
# List of libraries to build
self
.
libraries
=
None
...
...
@@ -43,9 +43,9 @@ class build_lib (Command):
self
.
undef
=
None
self
.
debug
=
None
#
set_default
_options()
#
initialize
_options()
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
self
.
set_undefined_options
(
'build'
,
(
'debug'
,
'debug'
))
self
.
libraries
=
self
.
distribution
.
libraries
...
...
@@ -58,7 +58,7 @@ class build_lib (Command):
# XXX same as for build_ext -- what about 'self.define' and
# 'self.undef' ?
#
set_final
_options()
#
finalize
_options()
def
run
(
self
):
...
...
Lib/distutils/command/build_ext.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -38,9 +38,9 @@ class build_ext (Command):
# structure
# - that data structure (in this case, a list of 2-tuples)
# will then be present in the command object by the time
# we get to
set_final
_options() (i.e. the constructor
# we get to
finalize
_options() (i.e. the constructor
# takes care of both command-line and client options
# in between
set_default_options() and set_final
_options())
# in between
initialize_options() and finalize
_options())
user_options
=
[
(
'build-dir='
,
'd'
,
...
...
@@ -64,7 +64,7 @@ class build_ext (Command):
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
self
.
extensions
=
None
self
.
build_dir
=
None
self
.
package
=
None
...
...
@@ -79,7 +79,7 @@ class build_ext (Command):
self
.
debug
=
None
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
from
distutils
import
sysconfig
self
.
set_undefined_options
(
'build'
,
...
...
@@ -112,7 +112,7 @@ class build_ext (Command):
# XXX how the heck are 'self.define' and 'self.undef' supposed to
# be set?
#
set_final
_options ()
#
finalize
_options ()
def
run
(
self
):
...
...
Lib/distutils/command/build_lib.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -33,7 +33,7 @@ class build_lib (Command):
"compile with debugging information"
),
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
# List of libraries to build
self
.
libraries
=
None
...
...
@@ -43,9 +43,9 @@ class build_lib (Command):
self
.
undef
=
None
self
.
debug
=
None
#
set_default
_options()
#
initialize
_options()
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
self
.
set_undefined_options
(
'build'
,
(
'debug'
,
'debug'
))
self
.
libraries
=
self
.
distribution
.
libraries
...
...
@@ -58,7 +58,7 @@ class build_lib (Command):
# XXX same as for build_ext -- what about 'self.define' and
# 'self.undef' ?
#
set_final
_options()
#
finalize
_options()
def
run
(
self
):
...
...
Lib/distutils/command/build_py.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -23,13 +23,13 @@ class build_py (Command):
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
self
.
build_dir
=
None
self
.
modules
=
None
self
.
package
=
None
self
.
package_dir
=
None
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
self
.
set_undefined_options
(
'build'
,
(
'build_lib'
,
'build_dir'
))
...
...
Lib/distutils/command/install.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -55,7 +55,7 @@ class install (Command):
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
self
.
build_base
=
None
self
.
build_lib
=
None
...
...
@@ -89,7 +89,7 @@ class install (Command):
self
.
optimize_py
=
1
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
# XXX this method is where the default installation directories
# for modules and extension modules are determined. (Someday,
...
...
@@ -237,7 +237,7 @@ class install (Command):
# Punt on doc directories for now -- after all, we're punting on
# documentation completely!
#
set_final
_options ()
#
finalize
_options ()
def
replace_sys_prefix
(
self
,
config_attr
,
fallback_postfix
,
use_exec
=
0
):
...
...
Lib/distutils/command/install_ext.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -18,12 +18,12 @@ class install_ext (Command):
(
'build-dir='
,
'b'
,
"build directory (where to install from)"
),
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
# let the 'install' command dictate our installation directory
self
.
install_dir
=
None
self
.
build_dir
=
None
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
self
.
set_undefined_options
(
'install'
,
(
'build_platlib'
,
'build_dir'
),
(
'install_site_platlib'
,
'install_dir'
))
...
...
Lib/distutils/command/install_lib.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -18,14 +18,14 @@ class install_py (Command):
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
# let the 'install' command dictate our installation directory
self
.
install_dir
=
None
self
.
build_dir
=
None
self
.
compile
=
1
self
.
optimize
=
1
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
# Find out from the 'build_ext' command if we were asked to build
# any extensions. If so, that means even pure-Python modules in
...
...
Lib/distutils/command/install_py.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -18,14 +18,14 @@ class install_py (Command):
]
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
# let the 'install' command dictate our installation directory
self
.
install_dir
=
None
self
.
build_dir
=
None
self
.
compile
=
1
self
.
optimize
=
1
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
# Find out from the 'build_ext' command if we were asked to build
# any extensions. If so, that means even pure-Python modules in
...
...
Lib/distutils/command/sdist.py
Dosyayı görüntüle @
e01149cb
...
...
@@ -50,7 +50,7 @@ class sdist (Command):
exclude_re
=
re
.
compile
(
r'\s*!\s*(\S+)'
)
# for manifest lines
def
set_default
_options
(
self
):
def
initialize
_options
(
self
):
# 'template' and 'manifest' are, respectively, the names of
# the manifest template and manifest file.
self
.
template
=
None
...
...
@@ -68,7 +68,7 @@ class sdist (Command):
self
.
keep_tree
=
0
def
set_final
_options
(
self
):
def
finalize
_options
(
self
):
if
self
.
manifest
is
None
:
self
.
manifest
=
"MANIFEST"
if
self
.
template
is
None
:
...
...
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