Skip to content

Commit c7f6882

Browse files
committed
instruction for whl file
1 parent 1d32093 commit c7f6882

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/how-to.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,28 @@ cmake .. -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE -DBUILD_SHARED_LIBS=TRUE -DBUIL
157157
cmake --build . --target runtest
158158
```
159159
You need to change the Visual Studio version if you are using a different version of Visual Studio. Visual Studio can be downloaded from [this link](https://www.visualstudio.com/vs/). The above commands generate some Visual Studio project files, open the Visual Studio project to build ThunderSVM. Please note that CMake should be 3.4 or above for Windows.
160+
161+
#### Build python wheel file
162+
You have to ensure the repository is identical to the latest one.
163+
* Clone ThunderSVM repository
164+
```bash
165+
git clone https://github.com/zeyiwen/thundersvm.git
166+
```
167+
* Build the binary
168+
```base
169+
cd thundersvm
170+
mkdir build && cd build && cmake .. && make -j
171+
```
172+
* Build the python wheel file
173+
- change directory to python
174+
`cd ../python`
175+
- update the version you are going to release in [setup.py](https://github.com/Xtra-Computing/thundersvm/blob/1d320932c66e60610669165db25aa4a83e118a70/python/setup.py#L21)
176+
```bash
177+
python3 setup.py bdist_wheel
178+
```
179+
* Upload the wheel file to [Pypi.org](https://pypi.org)
180+
```sybase
181+
twine upload dist/* --verbose
182+
```
183+
* [Recommended] Draw a new release on [Release](https://github.com/Xtra-Computing/thundersvm/releases)
184+
* state the bug fixed or new functions.

0 commit comments

Comments
 (0)