Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 14f3b95

Browse files
anntzertacaswell
authored andcommitted
Fix libpng paths.
1 parent 4b2df55 commit 14f3b95

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ci/azure-pipelines-steps.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ steps:
2222

2323
- script: |
2424
nuget install libpng-msvc14-x64 -ExcludeVersion -OutputDirectory "$(build.BinariesDirectory)"
25-
echo ##vso[task.setvariable variable=MPLBASEDIRLIST]win32_static;$(build.BinariesDirectory)\libpng-msvc14-x64\build\native
26-
echo ##vso[task.setvariable variable=LIBDIR]%LIBDIR%;$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\lib_release
25+
echo ##vso[task.setvariable variable=CL]/I$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\include
26+
echo ##vso[task.setvariable variable=LINK]/LIBPATH:$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\lib_release
2727
echo ##vso[task.prependpath]$(build.BinariesDirectory)\libpng-msvc14-x64\build\native\bin_release
2828
displayName: 'Install dependencies with nuget'
2929

setupext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,8 +631,7 @@ def get_extension(self):
631631
default_libraries=(
632632
['png', 'z'] if os.name == 'posix' else
633633
# libpng upstream names their lib libpng16.lib, not png.lib.
634-
# zlib upstream names their lib zlib.lib, not z.lib.
635-
['libpng16', 'zlib'] if os.name == 'nt' else
634+
['libpng16'] if os.name == 'nt' else
636635
[]
637636
))
638637
add_numpy_flags(ext)

0 commit comments

Comments
 (0)