-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
try debug anaconda windows build according to scipy
- Loading branch information
Showing
3 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
@echo on | ||
setlocal enabledelayedexpansion | ||
|
||
mkdir builddir | ||
|
||
:: check if clang-cl is on path as required | ||
clang-cl.exe --version | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
|
||
:: set compilers to clang-cl | ||
set "CC=clang-cl" | ||
|
||
:: flang 17 still uses "temporary" name | ||
set "FC=flang-new" | ||
|
||
:: need to read clang version for path to compiler-rt | ||
FOR /F "tokens=* USEBACKQ" %%F IN (`clang.exe -dumpversion`) DO ( | ||
SET "CLANG_VER=%%F" | ||
) | ||
|
||
:: attempt to match flags for flang as we set them for clang-on-win, see | ||
:: https://github.com/conda-forge/clang-win-activation-feedstock/blob/main/recipe/activate-clang_win-64.sh | ||
:: however, -Xflang --dependent-lib=msvcrt currently fails as an unrecognized option, see also | ||
:: https://github.com/llvm/llvm-project/issues/63741 | ||
set "FFLAGS=-D_CRT_SECURE_NO_WARNINGS -D_MT -D_DLL --target=x86_64-pc-windows-msvc -nostdlib" | ||
set "LDFLAGS=--target=x86_64-pc-windows-msvc -nostdlib -Xclang --dependent-lib=msvcrt -fuse-ld=lld" | ||
set "LDFLAGS=%LDFLAGS% -Wl,-defaultlib:%BUILD_PREFIX%/Library/lib/clang/!CLANG_VER:~0,2!/lib/windows/clang_rt.builtins-x86_64.lib" | ||
|
||
:: see explanation here: | ||
:: https://github.com/conda-forge/scipy-feedstock/pull/253#issuecomment-1732578945 | ||
set "MESON_RSP_THRESHOLD=320000" | ||
|
||
:: -wnx flags mean: --wheel --no-isolation --skip-dependency-check | ||
%PYTHON% -m pip install --no-deps --no-build-isolation --ignore-installed ^ | ||
--config-settings=builddir=builddir ^ | ||
--config-settings=setup-args=-Dfortran_std=none ^ | ||
. | ||
if %ERRORLEVEL% neq 0 (type builddir\meson-logs\meson-log.txt && exit 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
python: | ||
- 3.9 | ||
- 3.10 | ||
# - 3.9 | ||
# - 3.10 | ||
- 3.11 | ||
# - 3.12 | ||
# - 3.12 | ||
numpy: | ||
# - 1.23 | ||
# - 1.23 | ||
- 1.23 | ||
- 1.23 | ||
- 1.23 | ||
# - 1.26 | ||
# - 1.26 | ||
zip_keys: | ||
- python | ||
- numpy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters