Skip to content

Commit 453ea5d

Browse files
committed
IGNITE-14534 Add script to build wheels on Windows
This closes #32
1 parent fb400f1 commit 453ea5d

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

README.md

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

4646
***NB!* Docker is required.**
4747

48-
Ready wheels for `x86` and `x86-64` for different python versions (3.6, 3.7, 3.8 and 3.9) will be
49-
located in `./distr` directory.
48+
- 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
49+
x86-64 should be installed. You can disable some of these versions but you'd need to edit script for that.
50+
- For building `wheels` for Windows, invoke script `.\scripts\BuildWheels.ps1` using PowerShell. Just make sure that
51+
your execution policy allows execution of scripts in your environment.
5052

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.
5155

5256
### Updating from older version
5357

scripts/BuildWheels.ps1

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
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+
$PyVers="36","37","38","39"
17+
18+
[System.Collections.ArrayList]$PyVersFull = $PyVers
19+
foreach ($Ver in $PyVers)
20+
{
21+
[Void]$PyVersFull.Add("$Ver-32")
22+
}
23+
24+
foreach ($Ver in $PyVersFull)
25+
{
26+
& "$env:LOCALAPPDATA\Programs\Python\Python$Ver\python.exe" -m venv epy$Ver
27+
28+
. ".\epy$Ver\Scripts\Activate.ps1"
29+
pip install -e .
30+
pip install wheel
31+
pip wheel . --no-deps -w distr
32+
}
33+

0 commit comments

Comments
 (0)