|
1 |
| -This note describes how to create a Windows PC executable of easy_abc. |
| 1 | +This note describes how to create a Windows PC executable of easy_abc.py |
2 | 2 |
|
3 |
| -You can find a tutorial on the site http://www.py2exe.org/index.cgi/Tutorial |
4 |
| -which is somewhat accurate. |
| 3 | +EasyABC comes with setup.py to create easy_abc.exe and setupEasyABC.iss to create an installer. |
| 4 | +You first need to be able to run easy_abc.py using Python. |
| 5 | +See using_EasyABC_in_Windows.txt for that. |
5 | 6 |
|
6 |
| -easy_abc comes with setup.py which is used to create easy_abc.exe. |
| 7 | +Then you will also need to install on your computer the program Inno Setup 6 and the python package cx_Freeze: |
| 8 | +Inno Setup can be downloaded here: https://jrsoftware.org/ |
7 | 9 |
|
8 |
| -You will also need to install on your computer, py2exe, cx_Freeze-*.win32.py2.7, |
9 |
| -and mechanize. They are all found on http://sourceforge.net. Ensure that these |
10 |
| -scripts go into the folder linked to PYTHONPATH. |
| 10 | +And cx_Freeze can be installed using: |
| 11 | +python -m pip install --upgrade cx_Freeze |
11 | 12 |
|
12 | 13 | Copy all the executables, abc2abc.exe, abc2midi.exe, abcm2ps.exe,
|
13 | 14 | nwc2xml.exe, and zlibwapi.dll into the bin folder. You can find nwc2xml.exe
|
14 | 15 | and zlibwapi.dll in the older easy_abc install.
|
15 | 16 |
|
16 |
| -Copy the folder Microsoft.VC90.CRT into your easyabc_source_code... folder. |
| 17 | +Make sure the environment variables PYTHON and PYTHONPATH are set correctly. |
17 | 18 |
|
18 |
| -Open a command window, CD to the folder easyabc_source_code... and set the |
| 19 | +Open a command window, go to the folder easyabc_source_code... and set the |
19 | 20 | PYTHON and PYTHONPATH using the autoexec.bat file. You should now be
|
20 |
| -ready. |
| 21 | +ready to run: |
21 | 22 |
|
22 |
| -python setup.py install |
| 23 | +build.bat |
23 | 24 |
|
24 | 25 | You should see lots of messages and an executable with other files
|
25 |
| -should be put into the folder build/exe.win32-27/ which you will find |
26 |
| -in the easy_source_code... folder. |
| 26 | +should be put into the folder build/exe.win32-38/ |
27 | 27 |
|
28 | 28 | I found that executable runs fine on Windows 7 64-bit but,
|
29 | 29 | I did not get it to run on my Windows XP laptop.
|
30 | 30 |
|
31 |
| -The package also comes with setup.iss which is a script for running |
32 |
| -the Inno Setup Compiler which is freely available. The setup.iss |
33 |
| -file should no longer be used since it assumes a build/exe.win32-26/ |
34 |
| -created by Python2.6 rather than Python2.7. Instead you should |
35 |
| -use setupEasy07.iss which I created recently. You will also |
36 |
| -require Inno Setup installed on your PC. See the header of text |
37 |
| -file setupEasy07.iss. |
38 | 31 |
|
39 |
| -I also created an install script for the "nullsoft scriptable install |
40 |
| -system 2.46" (NSIS) before discovering Inno Setup. I have left the |
41 |
| -script here easyabc.nsi but I now prefer Inno Setup which appears |
42 |
| -to be the standard. |
43 |
| - |
44 |
| -Seymour Shlien |
| 32 | +Seymour Shlien & Jan Wybren de Jong |
0 commit comments