@@ -22,13 +22,18 @@ unpack it, with a single command:
22
22
23
23
pip install --no-install --build . PyModel
24
24
25
+ Be sure to use the " --no-install -build . " options.
26
+
25
27
Then you can run PyModel using the commands and modules in the
26
28
unpacked distribution directory. Just put PyModel/bin on your
27
29
execution PATH and PyModel/pymodel on your PYTHONPATH. You can
28
- achieve this by executing the script PyModel/bin/pymodel_paths (or
29
- pymodel_paths.bat on Windows). That script assumes the distribution
30
- directory is in your HOME directory and is named PyModel (not
31
- PyModel-1.0, so you many need to rename it).
30
+ achieve this by executing the script PyModel/bin/pymodel_paths. That
31
+ script assumes the distribution directory is in your HOME directory
32
+ and is named PyModel (not PyModel-1.0, so you many need to rename it).
33
+ On Windows, pymodel_paths_mydocs.bat assumes the unpacked PyModel
34
+ directory is under your My Documents directory (as is common in
35
+ Windows XP), while pymodel_paths.bat assumes it is under your home
36
+ directory (which might be more common in Windows 7).
32
37
33
38
Confirm that PyModel works for you by running some of the test scripts
34
39
in the samples directories. For example, in
@@ -38,8 +43,9 @@ program as it executes the PowerSwitch model.
38
43
39
44
The setup.py script included in the distribution now supports the
40
45
install argument, so you can optionally install the PyModel python
41
- modules and commands in system directories (for example in
42
- /Library/Python/2.7/site-packages and /usr/local/bin, respectively).
46
+ modules and commands in system directories (for example, on Mac OS X:
47
+ /Library/Python/2.7/site-packages and /usr/local/bin, respectively;
48
+ on Windows: C:\Python27\Lib\site-packages and C:\Python27\Scripts).
43
49
In the PyModel directory, type the command:
44
50
45
51
sudo python setup.py install
@@ -51,9 +57,10 @@ Alternatively, if you have pip installed you can type the command:
51
57
The pip utility maintains a registry of the packages it has installed,
52
58
which makes it easy to review and uninstall packages.
53
59
54
- After installing you should not need to execute pymodel_path, but You
55
- still need to type the command: source tpath (in Windows, just tpath)
56
- in every session (terminal window).
60
+ After installing you should not need to execute pymodel_paths, but you
61
+ may still need to type the command: source tpath in every session
62
+ (terminal window). After installing on Windows you may still need to
63
+ set paths, pymodel_paths_installed.bat might be a useful example.
57
64
58
65
Most of the distribution contents is in the examples under
59
66
PyModel/samples, and in the documentation under PyModel/notes, www,
0 commit comments