source: orange/install-scripts/createCommonAddOns__.btm @ 8055:0cd39e14f120

Revision 8055:0cd39e14f120, 2.7 KB checked in by ales_erjavec <ales.erjavec@…>, 3 years ago (diff)

Removed the –install-script= command line arguments.

Line 
1REM #input arguments
2REM # %1 - PKG_TYPE - kind of installation (snapshot, release) - needed to name log file accordingly
3REM # %2 - PKG_BIOINFORMATICS - name of package for Orange Bioinformatics add on (can be release or snapshot)
4REM # %3 - PKG_TEXT - name of package for Orange Text Mining (release or snapshot)
5
6set PKG_TYPE=%1
7set PKG_BIOINFORMATICS=%2
8set PKG_TEXT=%3
9
10set PATH=%PATH;c:\MinGW\bin
11set SWIGLIB=C:\swigwin-1.3.31\Lib
12
13REM # compile and pack
14for %pyver in (%PYTHONVERSIONS) do (
15  set npver=%@LEFT[1,%pyver].%@RIGHT[-1,%pyver]
16
17  echo *************************************
18  echo *************************************
19  echo *** Compiling Orange Bioinformatics for Python %pyver
20  cdd %TMPDIR\add-ons\Bioinformatics
21  del /syeq build
22  del /syeq dist
23
24  REM # compile and pack
25  set COMPILELOG=%TMPDIR\win-%PKG_TYPE-addOn-bioinformatics-compileAndPack-py%npver.log
26  del /q %COMPILELOG
27  set PYTHON=%PYTHONBASE%%pyver
28  %PYTHON\python setup.py build -c mingw32 bdist_wininst > %COMPILELOG
29  break_on_error
30rem when compiled:  move /z %TMPDIR\add-ons\Bioinformatics\dist\*.win32-py%npver.exe %TMPDIR\%PKG_BIOINFORMATICS-py%npver.exe
31  move /z %TMPDIR\add-ons\Bioinformatics\dist\*.win32.exe %TMPDIR\%PKG_BIOINFORMATICS-py%npver.exe
32
33  REM # publish, add record to stamps_pyd.txt, needed for update from web (accessed by updateFromSVN.bat) 
34  set TMPBINDIR=%TMPDIR\binaries\%pyver\add-ons\Bioinformatics
35  if not direxist %TMPBINDIR mkdir /s %TMPBINDIR
36 
37  cdd %TMPDIR\add-ons\Bioinformatics\build\lib.win32-%npver
38  for %pydf in (*.pyd) do (
39    copy %pydf %TMPBINDIR
40    set MD5=%@MD5[%pydf]
41    echo add-ons\Bioinformatics\%pydf %MD5 >> %TMPDIR\binaries\%pyver\stamps_pyd.txt
42  )
43)
44
45for %pyver in (%PYTHONVERSIONS_ADDONs) do (
46  set npver=%@LEFT[1,%pyver].%@RIGHT[-1,%pyver]
47 
48  echo *************************************
49  echo *************************************
50  echo *** Compiling TEXT MINING for Python %pyver
51  cdd %TMPDIR\add-ons\Text
52  del /syeq build
53  del /syeq dist
54
55  REM # compile and pack
56  set COMPILELOG=%TMPDIR\win-%PKG_TYPE-addOn-text-compileAndPack-py%npver.log
57  del /q %COMPILELOG
58  set PYTHON=%PYTHONBASE%%pyver
59  %PYTHON\python setup.py build -c mingw32 bdist_wininst > %COMPILELOG
60  rem break_on_error
61  move /z %TMPDIR\add-ons\Text\dist\*.win32-py%npver.exe %TMPDIR\%PKG_TEXT-py%npver.exe
62
63  REM # publish, add record to stamps_pyd.txt, needed for update from web (accessed by updateFromSVN.bat) 
64  set TMPBINDIR=%TMPDIR\binaries\%pyver\add-ons\Text
65  if not direxist %TMPBINDIR mkdir /s %TMPBINDIR
66
67  cdd %TMPDIR\add-ons\Text\build\lib.win32-%npver
68  for %pydf in (*.pyd) do (
69    copy %pydf %TMPBINDIR
70    set MD5=%@MD5[%pydf]
71    echo add-ons\Text\%pydf %MD5 >> %TMPDIR\binaries\%pyver\stamps_pyd.txt   
72  )
73)
Note: See TracBrowser for help on using the repository browser.