Skip to content

Commit 19f824d

Browse files
committed
Fix import lib
1 parent 0e0de9a commit 19f824d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

recipe/build_base.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ for %%x in (idle pydoc) do (
132132

133133
:: Populate the libs directory
134134
if not exist %PREFIX%\libs mkdir %PREFIX%\libs
135+
dir %SRC_DIR%\PCbuild\%BUILD_PATH%\
135136
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python%VERNODOTS%%_D%.lib %PREFIX%\libs\
136137
if errorlevel 1 exit 1
137138
if exist %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%_D%.lib copy /Y %SRC_DIR%\PCbuild\%BUILD_PATH%\python3%_D%.lib %PREFIX%\libs\

recipe/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ outputs:
229229
- for f in ${CONDA_PREFIX}/lib/python*/_sysconfig*.py; do echo "Checking $f:"; if [[ `rg @[^@]*@ $f` ]]; then echo "FAILED ON $f"; cat $f; exit 1; fi; done # [linux64 or osx]
230230
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.a # [unix]
231231
- test ! -f ${PREFIX}/lib/libpython${PKG_VERSION%.*}.nolto.a # [unix]
232+
- if not exist %PREFIX%\\libs\\python3.lib exit 1 # [win]
233+
- if not exist %PREFIX%\\libs\\python3{{ ver2nd }}.lib exit 1 # [win]
232234
# https://github.com/conda-forge/python-feedstock/issues/384
233235
- if exist %PREFIX%\\Scripts\\pydoc exit 1 # [win]
234236
- if exist %PREFIX%\\Scripts\\idle exit 1 # [win]

0 commit comments

Comments
 (0)