You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by is...@apache.org on 2021/04/14 13:10:05 UTC
[ignite-python-thin-client] branch master updated: IGNITE-14534 Add
script to build wheels on Windows
This is an automated email from the ASF dual-hosted git repository.
isapego pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-python-thin-client.git
The following commit(s) were added to refs/heads/master by this push:
new 453ea5d IGNITE-14534 Add script to build wheels on Windows
453ea5d is described below
commit 453ea5d9cf9a8c0ebb6aa92d8268f02d195230d5
Author: Igor Sapego <is...@apache.org>
AuthorDate: Wed Apr 14 16:09:32 2021 +0300
IGNITE-14534 Add script to build wheels on Windows
This closes #32
---
README.md | 8 ++++++--
scripts/BuildWheels.ps1 | 33 +++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index f44276f..7a23147 100644
--- a/README.md
+++ b/README.md
@@ -45,9 +45,13 @@ There is an optional C extension to speedup some computational intensive tasks.
***NB!* Docker is required.**
- Ready wheels for `x86` and `x86-64` for different python versions (3.6, 3.7, 3.8 and 3.9) will be
- located in `./distr` directory.
+- 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
+ x86-64 should be installed. You can disable some of these versions but you'd need to edit script for that.
+- For building `wheels` for Windows, invoke script `.\scripts\BuildWheels.ps1` using PowerShell. Just make sure that
+ your execution policy allows execution of scripts in your environment.
+ Ready wheels for `x86` and `x86-64` for different python versions (3.6, 3.7, 3.8 and 3.9) will be
+ located in `distr` directory.
### Updating from older version
diff --git a/scripts/BuildWheels.ps1 b/scripts/BuildWheels.ps1
new file mode 100644
index 0000000..cf7424e
--- /dev/null
+++ b/scripts/BuildWheels.ps1
@@ -0,0 +1,33 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+$PyVers="36","37","38","39"
+
+[System.Collections.ArrayList]$PyVersFull = $PyVers
+foreach ($Ver in $PyVers)
+{
+ [Void]$PyVersFull.Add("$Ver-32")
+}
+
+foreach ($Ver in $PyVersFull)
+{
+ & "$env:LOCALAPPDATA\Programs\Python\Python$Ver\python.exe" -m venv epy$Ver
+
+ . ".\epy$Ver\Scripts\Activate.ps1"
+ pip install -e .
+ pip install wheel
+ pip wheel . --no-deps -w distr
+}
+