Skip to content

Commit a26885a

Browse files
authored
GG-33813 [IGNITE-14534] Add script to build wheels on Windows (#43)
(cherry picked from commit 453ea5d)
1 parent c9be9b2 commit a26885a

2 files changed

Lines changed: 40 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ There is an optional C extension to speedup some computational intensive tasks.
5050

5151
***NB!* Docker is required.**
5252

53-
Ready wheels for `x86` and `x86-64` for different python versions (3.6, 3.7, 3.8 and 3.9) will be
54-
located in `./distr` directory.
53+
- On Windows MSVC 14.x required, and it should be in path, also python versions 3.6, 3.7, 3.8 and 3.9 both for x86 and
54+
x86-64 should be installed. You can disable some of these versions but you'd need to edit script for that.
55+
- For building `wheels` for Windows, invoke script `.\scripts\BuildWheels.ps1` using PowerShell. Just make sure that
56+
your execution policy allows execution of scripts in your environment.
5557

58+
Ready wheels for `x86` and `x86-64` for different python versions (3.6, 3.7, 3.8 and 3.9) will be
59+
located in `distr` directory.
5660

5761
### Updating from older version
5862

scripts/BuildWheels.ps1

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#
2+
# Copyright 2021 GridGain Systems, Inc. and Contributors.
3+
#
4+
# Licensed under the GridGain Community Edition License (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
$PyVers="36","37","38","39"
18+
19+
[System.Collections.ArrayList]$PyVersFull = $PyVers
20+
foreach ($Ver in $PyVers)
21+
{
22+
[Void]$PyVersFull.Add("$Ver-32")
23+
}
24+
25+
foreach ($Ver in $PyVersFull)
26+
{
27+
& "$env:LOCALAPPDATA\Programs\Python\Python$Ver\python.exe" -m venv epy$Ver
28+
29+
. ".\epy$Ver\Scripts\Activate.ps1"
30+
pip install -e .
31+
pip install wheel
32+
pip wheel . --no-deps -w distr
33+
}
34+

0 commit comments

Comments
 (0)