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