[WIP] build pysam on Windows#964
Conversation
|
Couple of problems: libvcruntime140.a is missing when following above instructions. Fix:
libws2_32.a cannot be found unless this line in setup.py:
is changed to this:
|
|
Hi, I just follow your instruction but the final step there is no pysam folder. Also my Anaconda3 folder does not have bin/usr folder too. What should I do? |
|
pysam folder is the source code folder. |
|
Here's a recent version compiled using Anaconda with the instructions from this PR + my MinGW patch. pysam-0.22.0-cp311-cp311-win_amd64.zip Support files that have to be extracted to Lib\site-packages\pysam |
dirty fix, need improvement.
The attachment wheel can be installed to Anaconda3 2020.02 without other dependencies.
pysam-0.16.0.1-cp37-cp37m-win_amd64.whl.zip
How to build the wheel with this fix:
Windows 10 (assume that the username is User)
Visual Studio 2019 16.7 (with C++ development installed)
Anaconda3 2020.02 (assume that the install path is
C:\Users\User\anaconda3)MSYS2 x86_64 20200903 (assume that the install path is
C:\msys64)C:\Users\User\anaconda3\Lib\distutils\cygwinccompiler.pyLine 87to
Open Start > MSYS2 64bit > MSYS2 MSYS
execute
pacman -S --needed --noconfirm libraries mingw-w64-x86_64-toolchaincopy
C:\msys64\mingw64\bin\mingw32-make.exetoC:\msys64\mingw64\bin\make.exeOpen Start > MSYS2 64bit > MSYS2 MinGW 64-bit