mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
fix pythonpath for virtualenvs
This commit is contained in:
parent
ccf9eb5628
commit
ac50350f3d
|
@ -62,6 +62,10 @@ def build_one(py_ver, compiler):
|
||||||
# UNDONE virtual envs if we're not running on appveyor
|
# UNDONE virtual envs if we're not running on appveyor
|
||||||
args = {}
|
args = {}
|
||||||
args.update(compiler)
|
args.update(compiler)
|
||||||
|
if 'PYTHON' in os.environ:
|
||||||
|
args['python_path'] = "%PYTHON%"
|
||||||
|
else:
|
||||||
|
args['python_path'] = "%s%s\\Scripts" % (VIRT_BASE, py_ver)
|
||||||
args['py_ver'] = py_ver
|
args['py_ver'] = py_ver
|
||||||
return r"""
|
return r"""
|
||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
|
@ -72,7 +76,7 @@ set INCLUDE=%%INCLUDE%%;%%INCLIB%%\%(inc_dir)s;%%INCLIB%%\tcl85\include
|
||||||
|
|
||||||
setlocal
|
setlocal
|
||||||
set LIB=%%LIB%%;C:\Python%(py_ver)s\tcl
|
set LIB=%%LIB%%;C:\Python%(py_ver)s\tcl
|
||||||
call %%PYTHON%%\python.exe setup.py %%BLDOPT%%
|
call %(python_path)s\python.exe setup.py %%BLDOPT%%
|
||||||
endlocal
|
endlocal
|
||||||
|
|
||||||
endlocal
|
endlocal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user