From e2188929b99b03e59f406d6bde32ea3c88fd72ed Mon Sep 17 00:00:00 2001 From: Mohammadreza Rezaie Date: Thu, 17 Oct 2024 16:20:56 +0330 Subject: [PATCH 1/2] Update README.md --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bdcc1672..07f16b20 100644 --- a/README.md +++ b/README.md @@ -182,9 +182,13 @@ An automated script for compilation is offered on vcpkg. Install vcpkg by making ## Compile via `setup.py` This way of "installing" is mostly for convenience when developing on ezc3d and the python-wrapper. It is **not** recommended for normal usage. Refer to [Anaconda](#anaconda-for-windows-linux-and-mac) for that. -The call is similar to the following (example for windows). (`pip install` is **not** supported) +The call is similar to the following (example for windows). ```powershell -python .\setup.py develop -- -G"Visual Studio 16 2019" -A x64 -DSWIG_EXECUTABLE="D:/swigwin-4.0.2/swig.exe" -DSWIG_DIR="D:/swigwin-4.0.2/Lib" +python .\setup.py sdist bdist_wheel -- -G"Visual Studio 17 2022" -A x64 -DSWIG_EXECUTABLE="D:/swigwin-4.0.2/swig.exe" -DSWIG_DIR="D:/swigwin-4.0.2/Lib" +``` +The `bdist_wheel` command will create a wheel file which can be installed via `pip`: +```powershell +python install ./dist/zzz.whl ``` # How to use From 08b8e53d63bdf78b02c1c0d6633b44529bc95715 Mon Sep 17 00:00:00 2001 From: Mohammadreza Rezaie Date: Thu, 17 Oct 2024 16:36:46 +0330 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 07f16b20..0d8727d4 100644 --- a/README.md +++ b/README.md @@ -186,9 +186,9 @@ The call is similar to the following (example for windows). ```powershell python .\setup.py sdist bdist_wheel -- -G"Visual Studio 17 2022" -A x64 -DSWIG_EXECUTABLE="D:/swigwin-4.0.2/swig.exe" -DSWIG_DIR="D:/swigwin-4.0.2/Lib" ``` -The `bdist_wheel` command will create a wheel file which can be installed via `pip`: +The wheel file in the `dist` folder can be installed via `pip`: ```powershell -python install ./dist/zzz.whl +pip install ./dist/zzz.whl ``` # How to use