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
b5e6a92e
Commit
b5e6a92e
authored
Jul 12, 2020
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'clean'
parents
c4e3afb3
30de1af5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
distutils/_msvccompiler.py
distutils/_msvccompiler.py
+2
-6
distutils/spawn.py
distutils/spawn.py
+4
-4
No files found.
distutils/_msvccompiler.py
View file @
b5e6a92e
...
...
@@ -501,12 +501,8 @@ class MSVCCompiler(CCompiler) :
log
.
debug
(
"skipping %s (up-to-date)"
,
output_filename
)
def
spawn
(
self
,
cmd
):
old_path
=
os
.
getenv
(
'path'
)
try
:
os
.
environ
[
'path'
]
=
self
.
_paths
return
super
().
spawn
(
cmd
)
finally
:
os
.
environ
[
'path'
]
=
old_path
env
=
dict
(
os
.
environ
,
path
=
self
.
_paths
)
return
super
().
spawn
(
cmd
,
env
=
env
)
# -- Miscellaneous methods -----------------------------------------
# These are all used by the 'gen_lib_options() function, in
...
...
distutils/spawn.py
View file @
b5e6a92e
...
...
@@ -20,7 +20,7 @@ if sys.platform == 'darwin':
_cfg_target_split
=
None
def
spawn
(
cmd
,
search_path
=
1
,
verbose
=
0
,
dry_run
=
0
):
def
spawn
(
cmd
,
search_path
=
1
,
verbose
=
0
,
dry_run
=
0
,
env
=
None
):
"""Run another program, specified as a command list 'cmd', in a new process.
'cmd' is just the argument list for the new process, ie.
...
...
@@ -49,7 +49,8 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0):
if
executable
is
not
None
:
cmd
[
0
]
=
executable
env
=
None
env
=
env
if
env
is
not
None
else
dict
(
os
.
environ
)
if
sys
.
platform
==
'darwin'
:
global
_cfg_target
,
_cfg_target_split
if
_cfg_target
is
None
:
...
...
@@ -68,8 +69,7 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0):
'now "%s" but "%s" during configure'
%
(
cur_target
,
_cfg_target
))
raise
DistutilsPlatformError
(
my_msg
)
env
=
dict
(
os
.
environ
,
MACOSX_DEPLOYMENT_TARGET
=
cur_target
)
env
.
update
(
MACOSX_DEPLOYMENT_TARGET
=
cur_target
)
try
:
proc
=
subprocess
.
Popen
(
cmd
,
env
=
env
)
...
...
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