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
5d779ebd
Commit
5d779ebd
authored
Feb 10, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typecheck 'output_dir' argument to compile/link methods.
parent
e9cac8be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
unixccompiler.py
unixccompiler.py
+6
-0
No files found.
unixccompiler.py
View file @
5d779ebd
...
...
@@ -106,6 +106,8 @@ class UnixCCompiler (CCompiler):
extra_preargs
=
None
,
extra_postargs
=
None
):
if
type
(
output_dir
)
not
in
(
StringType
,
NoneType
):
raise
TypeError
,
"'output_dir' must be a string or None"
if
output_dir
is
None
:
output_dir
=
self
.
output_dir
if
macros
is
None
:
...
...
@@ -205,6 +207,8 @@ class UnixCCompiler (CCompiler):
"'objects' must be a list or tuple of strings"
objects
=
list
(
objects
)
if
type
(
output_dir
)
not
in
(
StringType
,
NoneType
):
raise
TypeError
,
"'output_dir' must be a string or None"
if
output_dir
is
None
:
output_dir
=
self
.
output_dir
...
...
@@ -270,6 +274,8 @@ class UnixCCompiler (CCompiler):
lib_opts
=
gen_lib_options
(
self
,
self
.
library_dirs
+
library_dirs
,
self
.
libraries
+
libraries
)
if
type
(
output_dir
)
not
in
(
StringType
,
NoneType
):
raise
TypeError
,
"'output_dir' must be a string or None"
if
output_dir
is
not
None
:
output_filename
=
os
.
path
.
join
(
output_dir
,
output_filename
)
...
...
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