1010
1111https://pypi.org/project/bitweb-yespower/#files
1212
13- python3.7 -m pip install bitweb-yespower
13+ python3.7 -m pip install bitweb-yespower
14+
15+ How to compile at windows ?
16+
17+ Example for python38-32bit.
18+
19+ You need installed mingw32 and installed reuqired Python version
20+
21+ Instaled wheel and twine
22+
23+ python3 -m pip install wheel
24+
25+ python3 -m pip install twine
26+
27+ Go to https://sourceforge.net/projects/mingw/files/MinGW/Extension/pexports/pexports-0.47/
28+
29+ And download pexports-0.47-mingw32-bin.tar.xz
30+
31+ Unpack it to Python38-32\libs
32+
33+ Copy from python root folder to Python38-32\libs
34+
35+ vcruntime140.dll
36+ python3.dll
37+ python38.dll
38+
39+ Now go at command line to Python38-32\libs and convert dll to lib.a
40+
41+ pexports vcruntime140.dll >vcruntime140.def
42+ dlltool -dllname vcruntime140.dll --def vcruntime140.def --output-lib libvcruntime140.a
43+
44+ pexports python3.dll >python3.def
45+ dlltool --dllname python3.dll --def python3.def --output-lib libpython3.a
46+
47+ pexports python38.dll >python38.def
48+ dlltool --dllname python38.dll --def python38.def --output-lib libpython38.a
49+
50+ Open another command line windows and go there to bitweb-yespower source code folder.
51+
52+ Run at folder - python3 setup.py build --compile=mingw32
53+
54+ It is say - Unknown MS Compiler version ( remember that version as example - 1928)
55+
56+ Now go to Python38-32\Lib\distutils
57+
58+ Open with notepad cygwinccompiler.py
59+
60+ Edit latest line or add new and save
61+
62+ msc_pos = sys.version.find('MSC v.')
63+ if msc_pos != -1:
64+ msc_ver = sys.version[msc_pos+6:msc_pos+10]
65+ if msc_ver == '1300':
66+ # MSVC 7.0
67+ return ['msvcr70']
68+ elif msc_ver == '1310':
69+ # MSVC 7.1
70+ return ['msvcr71']
71+ elif msc_ver == '1400':
72+ # VS2005 / MSVC 8.0
73+ return ['msvcr80']
74+ elif msc_ver == '1500':
75+ # VS2008 / MSVC 9.0
76+ return ['msvcr90']
77+ elif msc_ver == '1928':
78+ # VS2010 / MSVC 10.0
79+ return ['vcruntime140']
80+
81+ Now go again to command line with source folder
82+
83+ Run python3 setup.py build --compile=mingw32 ( you will succes build libs )
84+
85+ Now run python3 setup.py bdist_wheel and you will succes pack it to wheel
86+
87+ For upload it to PyPi use - twine upload dist/*
88+
0 commit comments