-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
99 lines (61 loc) · 2.43 KB
/
README
File metadata and controls
99 lines (61 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
git clone https://github.com/dpowcore-project/dpowcoin_yespower_python3
cd dpowcoin_yespower_python3
sudo python3 setup.py install
import dpowcoin_yespower
or
https://pypi.org/project/dpowcoin-yespower/#files
python3.8 -m pip install dpowcoin-yespower
How to compile at windows ?
Download Mingw64
Example
https://www.mingw-w64.org/downloads/
we was use https://github.com/skeeto/w64devkit
Open cmd
Then go to source foleder and run depend for what system you build it - 64 or 32.
SET PATH=C:\mingw64\bin;%PATH%
Example for python38-64bit.
Instaled wheel and twine
python3 -m pip install wheel
python3 -m pip install twine
Go to https://sourceforge.net/projects/mingw/files/MinGW/Extension/pexports/pexports-0.47/
And download pexports-0.47-mingw32-bin.tar.xz
Unpack it to Python38\libs
Copy from python root folder to Python38\libs
vcruntime140.dll
python3.dll
python38.dll
Now go at command line to Python38\libs and convert dll to lib.a
pexports vcruntime140.dll >vcruntime140.def
dlltool -dllname vcruntime140.dll --def vcruntime140.def --output-lib libvcruntime140.a
pexports python3.dll >python3.def
dlltool --dllname python3.dll --def python3.def --output-lib libpython3.a
pexports python38.dll >python38.def
dlltool --dllname python38.dll --def python38.def --output-lib libpython38.a
Open another command line windows and go there to dpowcoin-yespower source code folder.
Run at folder - python3 setup.py build --compile=mingw32
It is say - Unknown MS Compiler version ( remember that version as example - 1928)
Now go to Python38\Lib\distutils
Open with notepad cygwinccompiler.py
Edit latest line or add new and save
msc_pos = sys.version.find('MSC v.')
if msc_pos != -1:
msc_ver = sys.version[msc_pos+6:msc_pos+10]
if msc_ver == '1300':
# MSVC 7.0
return ['msvcr70']
elif msc_ver == '1310':
# MSVC 7.1
return ['msvcr71']
elif msc_ver == '1400':
# VS2005 / MSVC 8.0
return ['msvcr80']
elif msc_ver == '1500':
# VS2008 / MSVC 9.0
return ['msvcr90']
elif msc_ver == '1928':
# VS2010 / MSVC 10.0
return ['vcruntime140']
Now go again to command line with source folder
Run python3 setup.py build --compile=mingw32 ( you will succes build libs )
Now run python3 setup.py bdist_wheel and you will succes pack it to wheel
For upload it to PyPi use - twine upload dist/*