Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
3d2ade66
Commit
3d2ade66
authored
Jul 18, 2004
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Whitespace normalization, via reindent.py.
parent
0180948b
Changes
24
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
32 additions
and
37 deletions
+32
-37
archive_util.py
archive_util.py
+2
-2
bcppcompiler.py
bcppcompiler.py
+1
-1
ccompiler.py
ccompiler.py
+2
-2
cmd.py
cmd.py
+2
-2
command/bdist.py
command/bdist.py
+1
-1
command/bdist_dumb.py
command/bdist_dumb.py
+1
-1
command/bdist_wininst.py
command/bdist_wininst.py
+1
-1
command/build_ext.py
command/build_ext.py
+2
-2
command/build_scripts.py
command/build_scripts.py
+1
-1
command/install.py
command/install.py
+1
-1
command/register.py
command/register.py
+0
-1
core.py
core.py
+0
-1
cygwinccompiler.py
cygwinccompiler.py
+1
-1
debug.py
debug.py
+0
-1
dir_util.py
dir_util.py
+0
-1
dist.py
dist.py
+2
-2
file_util.py
file_util.py
+1
-1
filelist.py
filelist.py
+1
-1
log.py
log.py
+4
-4
msvccompiler.py
msvccompiler.py
+3
-4
spawn.py
spawn.py
+1
-1
sysconfig.py
sysconfig.py
+1
-1
unixccompiler.py
unixccompiler.py
+3
-3
util.py
util.py
+1
-1
No files found.
archive_util.py
View file @
3d2ade66
...
...
@@ -68,7 +68,7 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0):
import
zipfile
except
ImportError
:
zipfile
=
None
zip_filename
=
base_name
+
".zip"
mkpath
(
os
.
path
.
dirname
(
zip_filename
),
dry_run
=
dry_run
)
...
...
@@ -79,7 +79,7 @@ def make_zipfile (base_name, base_dir, verbose=0, dry_run=0):
zipoptions
=
"-r"
else
:
zipoptions
=
"-rq"
try
:
spawn
([
"zip"
,
zipoptions
,
zip_filename
,
base_dir
],
dry_run
=
dry_run
)
...
...
bcppcompiler.py
View file @
3d2ade66
...
...
@@ -85,7 +85,7 @@ class BCPPCompiler(CCompiler) :
def
compile
(
self
,
sources
,
output_dir
=
None
,
macros
=
None
,
include_dirs
=
None
,
debug
=
0
,
extra_preargs
=
None
,
extra_postargs
=
None
,
depends
=
None
):
macros
,
objects
,
extra_postargs
,
pp_opts
,
build
=
\
self
.
_setup_compile
(
output_dir
,
macros
,
include_dirs
,
sources
,
depends
,
extra_postargs
)
...
...
ccompiler.py
View file @
3d2ade66
...
...
@@ -685,7 +685,7 @@ class CCompiler:
# A concrete compiler class can either override this method
# entirely or implement _compile().
macros
,
objects
,
extra_postargs
,
pp_opts
,
build
=
\
self
.
_setup_compile
(
output_dir
,
macros
,
include_dirs
,
sources
,
depends
,
extra_postargs
)
...
...
@@ -703,7 +703,7 @@ class CCompiler:
def
_compile
(
self
,
obj
,
src
,
ext
,
cc_args
,
extra_postargs
,
pp_opts
):
"""Compile 'src' to product 'obj'."""
# A concrete compiler class that does not override compile()
# should implement _compile().
pass
...
...
cmd.py
View file @
3d2ade66
...
...
@@ -79,7 +79,7 @@ class Command:
# verbose is largely ignored, but needs to be set for
# backwards compatibility (I think)?
self
.
verbose
=
dist
.
verbose
# Some commands define a 'self.force' option to ignore file
# timestamps, but methods defined *here* assume that
# 'self.force' exists for all commands. So define it here
...
...
@@ -100,7 +100,7 @@ class Command:
# XXX A more explicit way to customize dry_run would be better.
def
__getattr__
(
self
,
attr
):
if
attr
==
'dry_run'
:
myval
=
getattr
(
self
,
"_"
+
attr
)
...
...
command/bdist.py
View file @
3d2ade66
...
...
@@ -78,7 +78,7 @@ class bdist (Command):
'wininst'
:
(
'bdist_wininst'
,
"Windows executable installer"
),
'zip'
:
(
'bdist_dumb'
,
"ZIP file"
),
#'pkgtool': ('bdist_pkgtool',
#'pkgtool': ('bdist_pkgtool',
# "Solaris pkgtool distribution"),
#'sdux': ('bdist_sdux', "HP-UX swinstall depot"),
}
...
...
command/bdist_dumb.py
View file @
3d2ade66
...
...
@@ -53,7 +53,7 @@ class bdist_dumb (Command):
self
.
dist_dir
=
None
self
.
skip_build
=
0
self
.
relative
=
0
# initialize_options()
...
...
command/bdist_wininst.py
View file @
3d2ade66
...
...
@@ -115,7 +115,7 @@ class bdist_wininst (Command):
# we do not want to include pyc or pyo files
install_lib
.
compile
=
0
install_lib
.
optimize
=
0
# If we are building an installer for a Python version other
# than the one we are currently running, then we need to ensure
# our build_lib reflects the other Python version rather than ours.
...
...
command/build_ext.py
View file @
3d2ade66
...
...
@@ -173,7 +173,7 @@ class build_ext (Command):
self
.
include_dirs
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
'PC'
))
self
.
library_dirs
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
'PCBuild'
))
# OS/2 (EMX) doesn't support Debug vs Release builds, but has the
# OS/2 (EMX) doesn't support Debug vs Release builds, but has the
# import libraries in its "Config" subdirectory
if
os
.
name
==
'os2'
:
self
.
library_dirs
.
append
(
os
.
path
.
join
(
sys
.
exec_prefix
,
'Config'
))
...
...
@@ -636,7 +636,7 @@ class build_ext (Command):
# EMX/GCC requires the python library explicitly, and I
# believe VACPP does as well (though not confirmed) - AIM Apr01
template
=
"python%d%d"
# debug versions of the main DLL aren't supported, at least
# debug versions of the main DLL aren't supported, at least
# not at this time - AIM Apr01
#if self.debug:
# template = template + '_d'
...
...
command/build_scripts.py
View file @
3d2ade66
...
...
@@ -94,7 +94,7 @@ class build_scripts (Command):
if
not
self
.
dry_run
:
outf
=
open
(
outfile
,
"w"
)
if
not
sysconfig
.
python_build
:
outf
.
write
(
"#!%s%s
\
n
"
%
outf
.
write
(
"#!%s%s
\
n
"
%
(
os
.
path
.
normpath
(
sys
.
executable
),
post_interp
))
else
:
...
...
command/install.py
View file @
3d2ade66
...
...
@@ -537,7 +537,7 @@ class install (Command):
not
(
self
.
path_file
and
self
.
install_path_file
)
and
install_lib
not
in
sys_path
):
log
.
debug
((
"modules installed to '%s', which is not in "
"Python's module search path (sys.path) -- "
"Python's module search path (sys.path) -- "
"you'll have to change the search path yourself"
),
self
.
install_lib
)
...
...
command/register.py
View file @
3d2ade66
...
...
@@ -286,4 +286,3 @@ Your selection [default 1]: ''',
if
self
.
show_response
:
print
'-'
*
75
,
data
,
'-'
*
75
return
result
core.py
View file @
3d2ade66
...
...
@@ -239,4 +239,3 @@ def run_setup (script_name, script_args=None, stop_after="run"):
return
_setup_distribution
# run_setup ()
cygwinccompiler.py
View file @
3d2ade66
...
...
@@ -75,7 +75,7 @@ class CygwinCCompiler (UnixCCompiler):
(
status
,
details
))
if
status
is
not
CONFIG_H_OK
:
self
.
warn
(
"Python's pyconfig.h doesn't seem to support your compiler. "
"Python's pyconfig.h doesn't seem to support your compiler. "
"Reason: %s. "
"Compiling may fail because of undefined preprocessor macros."
%
details
)
...
...
debug.py
View file @
3d2ade66
...
...
@@ -7,4 +7,3 @@ __revision__ = "$Id$"
# If DISTUTILS_DEBUG is anything other than the empty string, we run in
# debug mode.
DEBUG
=
os
.
environ
.
get
(
'DISTUTILS_DEBUG'
)
dir_util.py
View file @
3d2ade66
...
...
@@ -225,4 +225,3 @@ def ensure_relative (path):
if
path
[
0
:
1
]
==
os
.
sep
:
path
=
drive
+
path
[
1
:]
return
path
dist.py
View file @
3d2ade66
...
...
@@ -231,7 +231,7 @@ class Distribution:
newreq
.
append
((
pkg
,
LooseVersion
(
ver
)))
attrs
[
'requires'
]
=
newreq
# Build up the provides object. If the setup() has no
# Build up the provides object. If the setup() has no
# provides line, we use packages or modules and the version
# to synthesise the provides. If no version is provided (no
# pun intended) we don't have a provides entry at all.
...
...
@@ -1137,7 +1137,7 @@ class DistributionMetadata:
return
self
.
download_url
or
"UNKNOWN"
def
get_requires
(
self
):
return
[
'%s%s%s'
%
(
x
,
(
y
and
'-'
)
or
''
,
y
or
''
)
return
[
'%s%s%s'
%
(
x
,
(
y
and
'-'
)
or
''
,
y
or
''
)
for
x
,
y
in
self
.
requires
]
def
get_provides
(
self
):
...
...
file_util.py
View file @
3d2ade66
...
...
@@ -42,7 +42,7 @@ def _copy_file_contents (src, dst, buffer_size=16*1024):
except
os
.
error
,
(
errno
,
errstr
):
raise
DistutilsFileError
,
\
"could not delete '%s': %s"
%
(
dst
,
errstr
)
try
:
fdst
=
open
(
dst
,
'wb'
)
except
os
.
error
,
(
errno
,
errstr
):
...
...
filelist.py
View file @
3d2ade66
...
...
@@ -167,7 +167,7 @@ class FileList:
for
pattern
in
patterns
:
if
not
self
.
include_pattern
(
pattern
,
prefix
=
dir
):
log
.
warn
((
"warning: no files found matching '%s' "
+
"under directory '%s'"
),
"under directory '%s'"
),
pattern
,
dir
)
elif
action
==
'recursive-exclude'
:
...
...
log.py
View file @
3d2ade66
...
...
@@ -28,16 +28,16 @@ class Log:
def
debug
(
self
,
msg
,
*
args
):
self
.
_log
(
DEBUG
,
msg
,
args
)
def
info
(
self
,
msg
,
*
args
):
self
.
_log
(
INFO
,
msg
,
args
)
def
warn
(
self
,
msg
,
*
args
):
self
.
_log
(
WARN
,
msg
,
args
)
def
error
(
self
,
msg
,
*
args
):
self
.
_log
(
ERROR
,
msg
,
args
)
def
fatal
(
self
,
msg
,
*
args
):
self
.
_log
(
FATAL
,
msg
,
args
)
...
...
msvccompiler.py
View file @
3d2ade66
...
...
@@ -117,7 +117,7 @@ class MacroExpander:
if
d
:
self
.
macros
[
"$(%s)"
%
macro
]
=
d
[
key
]
break
def
load_macros
(
self
,
version
):
vsbase
=
r"Software\
Mic
rosoft\
Visu
alStudio\
%
0.1f"
%
version
self
.
set_macro
(
"VCInstallDir"
,
vsbase
+
r"\
Se
tup\
VC
", "
productdir
")
...
...
@@ -166,7 +166,7 @@ def get_build_version():
return majorVersion + minorVersion
# else we don't know what version of the compiler this is
return None
class MSVCCompiler (CCompiler) :
"""Concrete class that implements an interface to Microsoft Visual C++,
...
...
@@ -525,7 +525,7 @@ class MSVCCompiler (CCompiler) :
return
fn
return
exe
def
get_msvc_paths
(
self
,
path
,
platform
=
'x86'
):
"""Get a list of devstudio directories (include, lib or path).
...
...
@@ -576,4 +576,3 @@ class MSVCCompiler (CCompiler) :
p
=
self
.
get_msvc_paths
(
name
)
if
p
:
os
.
environ
[
name
]
=
string
.
join
(
p
,
';'
)
spawn.py
View file @
3d2ade66
...
...
@@ -97,7 +97,7 @@ def _spawn_os2 (cmd,
#cmd = _nt_quote_args(cmd)
if
search_path
:
# either we find one or it stays the same
executable
=
find_executable
(
executable
)
or
executable
executable
=
find_executable
(
executable
)
or
executable
log
.
info
(
string
.
join
([
executable
]
+
cmd
[
1
:],
' '
))
if
not
dry_run
:
# spawnv for OS/2 EMX requires a full path to the .exe
...
...
sysconfig.py
View file @
3d2ade66
...
...
@@ -367,7 +367,7 @@ def _init_posix():
my_msg = ('$MACOSX_DEPLOYMENT_TARGET mismatch: now "
%
s
" but "
%
s
" during configure'
% (cur_target, cfg_target))
raise DistutilsPlatformError(my_msg)
# On AIX, there are wrong paths to the linker scripts in the Makefile
# -- these paths are relative to the Python source, but when installed
# the scripts are in another directory.
...
...
unixccompiler.py
View file @
3d2ade66
...
...
@@ -206,7 +206,7 @@ class UnixCCompiler(CCompiler):
elif
sys
.
platform
[:
5
]
==
"hp-ux"
:
return
"+s -L"
+
dir
elif
compiler
[:
3
]
==
"gcc"
or
compiler
[:
3
]
==
"g++"
:
return
"-Wl,-R"
+
dir
return
"-Wl,-R"
+
dir
else
:
return
"-R"
+
dir
...
...
@@ -217,7 +217,7 @@ class UnixCCompiler(CCompiler):
shared_f
=
self
.
library_filename
(
lib
,
lib_type
=
'shared'
)
dylib_f
=
self
.
library_filename
(
lib
,
lib_type
=
'dylib'
)
static_f
=
self
.
library_filename
(
lib
,
lib_type
=
'static'
)
for
dir
in
dirs
:
shared
=
os
.
path
.
join
(
dir
,
shared_f
)
dylib
=
os
.
path
.
join
(
dir
,
dylib_f
)
...
...
@@ -232,6 +232,6 @@ class UnixCCompiler(CCompiler):
return
shared
elif
os
.
path
.
exists
(
static
):
return
static
# Oops, didn't find it in *any* of 'dirs'
return
None
util.py
View file @
3d2ade66
...
...
@@ -300,7 +300,7 @@ def execute (func, args, msg=None, verbose=0, dry_run=0):
def strtobool (val):
"""
Convert
a
string
representation
of
truth
to
true
(
1
)
or
false
(
0
).
True
values
are
'y'
,
'yes'
,
't'
,
'true'
,
'on'
,
and
'1'
;
false
values
are
'n'
,
'no'
,
'f'
,
'false'
,
'off'
,
and
'0'
.
Raises
ValueError
if
'val'
is
anything
else
.
...
...
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