Skip to content

Commit

Permalink
Merge pull request #20 from sameeul/win2022
Browse files Browse the repository at this point in the history
Win2022
  • Loading branch information
sameeul authored Jun 13, 2023
2 parents a4da4fa + a7a37f3 commit 69e1166
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions recipe/0000-win_2022.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff --git a/setup.py b/setup.py
index 4cb904b..2a9d48a 100644
--- a/setup.py
+++ b/setup.py
@@ -56,12 +56,12 @@ class CMakeBuild(build_ext):

if platform.system() == "Windows":
print("-----------------Windows...")
- cmake_args += [
- "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}".format(cfg.upper(), extdir)
- ]
- if sys.maxsize > 2 ** 32:
- cmake_args += ["-A", "x64"]
- build_args += ["--", "/m"]
+ # cmake_args += [
+ # "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}".format(cfg.upper(), extdir)
+ # ]
+ # if sys.maxsize > 2 ** 32:
+ # cmake_args += ["-A", "x64"]
+ # build_args += ["--", "/m"]
else:
cmake_args += ["-DCMAKE_BUILD_TYPE=" + cfg]
build_args += ["--", "-j2"]
8 changes: 5 additions & 3 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set CMAKE_GENERATOR=Visual Studio 16 2019
set CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX "
python -m pip install .
set CMAKE_GENERATOR_PLATFORM=
set CMAKE_GENERATOR_TOOLSET=
set CMAKE_GENERATOR=Ninja
set CMAKE_ARGS=-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX
python -m pip install . -vv
2 changes: 1 addition & 1 deletion recipe/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
export CXXFLAGS="${CXXFLAGS} -D_LIBCPP_DISABLE_AVAILABILITY"
fi

CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX" python -m pip install .
CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$PREFIX -DCMAKE_INSTALL_PREFIX=$PREFIX" python -m pip install . -vv
6 changes: 4 additions & 2 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ package:
source:
url: https://github.com/PolusAI/{{ name }}/archive/refs/tags/{{ version }}.tar.gz
sha256: e89c37bfe8c32d060c9eaa36aebf5ccc3d4bff8afee6b26176fe04a279f45748

patches:
- 0000-win_2022.patch
build:
number: 3
number: 4
skip: true # [py<36]
missing_dso_whitelist:
- '*/nvcuda.dll' # [win]
Expand All @@ -26,6 +27,7 @@ requirements:
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} # [cuda_compiler_version != "None"]
- git
- ninja # [win]

host:
- python
Expand Down

0 comments on commit 69e1166

Please sign in to comment.