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
ab3a0f36
Kaydet (Commit)
ab3a0f36
authored
Agu 05, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed imports from '*util' modules to not just import everything from util.
üst
5a8aa1ba
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
15 deletions
+17
-15
bdist_dumb.py
Lib/distutils/command/bdist_dumb.py
+2
-1
bdist_rpm.py
Lib/distutils/command/bdist_rpm.py
+2
-1
bdist_wininst.py
Lib/distutils/command/bdist_wininst.py
+2
-1
clean.py
Lib/distutils/command/clean.py
+1
-1
install.py
Lib/distutils/command/install.py
+2
-1
install_lib.py
Lib/distutils/command/install_lib.py
+1
-1
sdist.py
Lib/distutils/command/sdist.py
+7
-9
No files found.
Lib/distutils/command/bdist_dumb.py
Dosyayı görüntüle @
ab3a0f36
...
@@ -10,7 +10,8 @@ __revision__ = "$Id$"
...
@@ -10,7 +10,8 @@ __revision__ = "$Id$"
import
os
import
os
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils.util
import
get_platform
,
create_tree
,
remove_tree
from
distutils.util
import
get_platform
from
distutils.dir_util
import
create_tree
,
remove_tree
from
distutils.errors
import
*
from
distutils.errors
import
*
class
bdist_dumb
(
Command
):
class
bdist_dumb
(
Command
):
...
...
Lib/distutils/command/bdist_rpm.py
Dosyayı görüntüle @
ab3a0f36
...
@@ -10,7 +10,8 @@ __revision__ = "$Id$"
...
@@ -10,7 +10,8 @@ __revision__ = "$Id$"
import
os
,
string
import
os
,
string
from
types
import
*
from
types
import
*
from
distutils.core
import
Command
,
DEBUG
from
distutils.core
import
Command
,
DEBUG
from
distutils.util
import
get_platform
,
write_file
from
distutils.util
import
get_platform
from
distutils.file_util
import
write_file
from
distutils.errors
import
*
from
distutils.errors
import
*
class
bdist_rpm
(
Command
):
class
bdist_rpm
(
Command
):
...
...
Lib/distutils/command/bdist_wininst.py
Dosyayı görüntüle @
ab3a0f36
...
@@ -9,7 +9,8 @@ __revision__ = "$Id$"
...
@@ -9,7 +9,8 @@ __revision__ = "$Id$"
import
sys
,
os
,
string
import
sys
,
os
,
string
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils.util
import
get_platform
,
create_tree
,
remove_tree
from
distutils.util
import
get_platform
from
distutils.dir_util
import
create_tree
,
remove_tree
from
distutils.errors
import
*
from
distutils.errors
import
*
class
bdist_wininst
(
Command
):
class
bdist_wininst
(
Command
):
...
...
Lib/distutils/command/clean.py
Dosyayı görüntüle @
ab3a0f36
...
@@ -8,7 +8,7 @@ __revision__ = "$Id$"
...
@@ -8,7 +8,7 @@ __revision__ = "$Id$"
import
os
import
os
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils.util
import
remove_tree
from
distutils.
dir_
util
import
remove_tree
class
clean
(
Command
):
class
clean
(
Command
):
...
...
Lib/distutils/command/install.py
Dosyayı görüntüle @
ab3a0f36
...
@@ -10,7 +10,8 @@ import sys, os, string
...
@@ -10,7 +10,8 @@ import sys, os, string
from
types
import
*
from
types
import
*
from
distutils.core
import
Command
,
DEBUG
from
distutils.core
import
Command
,
DEBUG
from
distutils
import
sysconfig
from
distutils
import
sysconfig
from
distutils.util
import
write_file
,
convert_path
,
subst_vars
,
change_root
from
distutils.file_util
import
write_file
from
distutils.util
import
convert_path
,
subst_vars
,
change_root
from
distutils.errors
import
DistutilsOptionError
from
distutils.errors
import
DistutilsOptionError
from
glob
import
glob
from
glob
import
glob
...
...
Lib/distutils/command/install_lib.py
Dosyayı görüntüle @
ab3a0f36
...
@@ -4,7 +4,7 @@ __revision__ = "$Id$"
...
@@ -4,7 +4,7 @@ __revision__ = "$Id$"
import
sys
,
os
,
string
import
sys
,
os
,
string
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils.util
import
copy_tree
from
distutils.
dir_
util
import
copy_tree
class
install_lib
(
Command
):
class
install_lib
(
Command
):
...
...
Lib/distutils/command/sdist.py
Dosyayı görüntüle @
ab3a0f36
...
@@ -10,9 +10,7 @@ import sys, os, string
...
@@ -10,9 +10,7 @@ import sys, os, string
from
types
import
*
from
types
import
*
from
glob
import
glob
from
glob
import
glob
from
distutils.core
import
Command
from
distutils.core
import
Command
from
distutils.util
import
\
from
distutils
import
dir_util
,
dep_util
,
file_util
,
archive_util
create_tree
,
remove_tree
,
newer
,
write_file
,
\
check_archive_formats
from
distutils.text_file
import
TextFile
from
distutils.text_file
import
TextFile
from
distutils.errors
import
*
from
distutils.errors
import
*
from
distutils.filelist
import
FileList
from
distutils.filelist
import
FileList
...
@@ -117,7 +115,7 @@ class sdist (Command):
...
@@ -117,7 +115,7 @@ class sdist (Command):
"don't know how to create source distributions "
+
\
"don't know how to create source distributions "
+
\
"on platform
%
s"
%
os
.
name
"on platform
%
s"
%
os
.
name
bad_format
=
check_archive_formats
(
self
.
formats
)
bad_format
=
archive_util
.
check_archive_formats
(
self
.
formats
)
if
bad_format
:
if
bad_format
:
raise
DistutilsOptionError
,
\
raise
DistutilsOptionError
,
\
"unknown archive format '
%
s'"
%
bad_format
"unknown archive format '
%
s'"
%
bad_format
...
@@ -195,7 +193,7 @@ class sdist (Command):
...
@@ -195,7 +193,7 @@ class sdist (Command):
# manifest; if so, we'll regenerate the manifest.
# manifest; if so, we'll regenerate the manifest.
template_exists
=
os
.
path
.
isfile
(
self
.
template
)
template_exists
=
os
.
path
.
isfile
(
self
.
template
)
if
template_exists
:
if
template_exists
:
template_newer
=
newer
(
self
.
template
,
self
.
manifest
)
template_newer
=
dep_util
.
newer
(
self
.
template
,
self
.
manifest
)
# The contents of the manifest file almost certainly depend on the
# The contents of the manifest file almost certainly depend on the
# setup script as well as the manifest template -- so if the setup
# setup script as well as the manifest template -- so if the setup
...
@@ -204,7 +202,7 @@ class sdist (Command):
...
@@ -204,7 +202,7 @@ class sdist (Command):
# manifest, but there's no template -- which will happen if the
# manifest, but there's no template -- which will happen if the
# developer elects to generate a manifest some other way -- then we
# developer elects to generate a manifest some other way -- then we
# can't regenerate the manifest, so we don't.)
# can't regenerate the manifest, so we don't.)
setup_newer
=
newer
(
sys
.
argv
[
0
],
self
.
manifest
)
setup_newer
=
dep_util
.
newer
(
sys
.
argv
[
0
],
self
.
manifest
)
# cases:
# cases:
# 1) no manifest, template exists: generate manifest
# 1) no manifest, template exists: generate manifest
...
@@ -368,7 +366,7 @@ class sdist (Command):
...
@@ -368,7 +366,7 @@ class sdist (Command):
by 'add_defaults()' and 'read_template()') to the manifest file
by 'add_defaults()' and 'read_template()') to the manifest file
named by 'self.manifest'.
named by 'self.manifest'.
"""
"""
self
.
execute
(
write_file
,
self
.
execute
(
file_util
.
write_file
,
(
self
.
manifest
,
self
.
filelist
.
files
),
(
self
.
manifest
,
self
.
filelist
.
files
),
"writing manifest file '
%
s'"
%
self
.
manifest
)
"writing manifest file '
%
s'"
%
self
.
manifest
)
...
@@ -404,7 +402,7 @@ class sdist (Command):
...
@@ -404,7 +402,7 @@ class sdist (Command):
"""
"""
# Create all the directories under 'base_dir' necessary to
# Create all the directories under 'base_dir' necessary to
# put 'files' there.
# put 'files' there.
create_tree
(
base_dir
,
files
,
dir_util
.
create_tree
(
base_dir
,
files
,
verbose
=
self
.
verbose
,
dry_run
=
self
.
dry_run
)
verbose
=
self
.
verbose
,
dry_run
=
self
.
dry_run
)
# And walk over the list of files, either making a hard link (if
# And walk over the list of files, either making a hard link (if
...
@@ -453,7 +451,7 @@ class sdist (Command):
...
@@ -453,7 +451,7 @@ class sdist (Command):
self
.
archive_files
=
archive_files
self
.
archive_files
=
archive_files
if
not
self
.
keep_tree
:
if
not
self
.
keep_tree
:
remove_tree
(
base_dir
,
self
.
verbose
,
self
.
dry_run
)
dir_util
.
remove_tree
(
base_dir
,
self
.
verbose
,
self
.
dry_run
)
def
get_archive_files
(
self
):
def
get_archive_files
(
self
):
"""Return the list of archive files created when the command
"""Return the list of archive files created when the command
...
...
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