File: mingw64-python.bat

package info (click to toggle)
mpi4py 3.1.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,468 kB
  • sloc: python: 23,844; ansic: 6,984; makefile: 665; sh: 316; f90: 158; cpp: 103
file content (23 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
setlocal ENABLEEXTENSIONS

rem MinGW-w64
rem http://sourceforge.net/projects/mingw-w64/
set MinGW=%ProgramFiles%\mingw-builds\x64-4.8.1-posix-seh-rev5\mingw64
set PATH=%MinGW%\bin;%PATH%
set GENDEF=gendef.exe
set DLLTOOL=dlltool.exe

rem Python 2.7
rem http://www.python.org/download/releases/2.7/
set PYVER=27
set PYDIR=C:\Python%PYVER%
set LIBDIR=%PYDIR%\libs
set DLLDIR=%WinDir%\System32
set LIBNAME=python%PYVER%
set DLLNAME=python%PYVER%

%GENDEF% - %DLLDIR%\%DLLNAME%.dll > %TEMP%\%LIBNAME%.def
%DLLTOOL% --dllname %DLLNAME%.dll --def %TEMP%\%LIBNAME%.def --output-lib %TEMP%\lib%LIBNAME%.a
move /Y %TEMP%\%LIBNAME%.def  %LIBDIR%
move /Y %TEMP%\lib%LIBNAME%.a %LIBDIR%