1414
1515 http://staff.washington.edu/jon/pymodel/www/
1616
17- Then unpack using a tar or zip utility. Then you can run PyModel
18- using the commands and modules in the unpacked distribution directory.
19- Just put PyModel/bin on your execution PATH and PyModel/pymodel on
20- your PYTHONPATH. You can achieve this by executing the script
21- PyModel/bin/pymodel_paths (or pymodel_paths.bat on Windows). That
22- script assumes the distribution directory is in your HOME directory
23- and is named PyModel (not PyModel-1.0, so you many need to rename it).
17+ Then unpack it using a tar or zip utility.
18+
19+ Alternatively, if you have pip installed you can download
20+ PyModel-1.0.tar.gz from PyPI into the current directory, and then
21+ unpack it, with a single command:
22+
23+ pip install --no-install --build . PyModel
24+
25+ Then you can run PyModel using the commands and modules in the
26+ unpacked distribution directory. Just put PyModel/bin on your
27+ 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).
2432
2533Confirm that PyModel works for you by running some of the test scripts
2634in the samples directories. For example, in
@@ -32,15 +40,28 @@ The setup.py script included in the distribution now supports the
3240install argument, so you can optionally install the PyModel python
3341modules and commands in system directories (for example in
3442/Library/Python/2.7/site-packages and /usr/local/bin, respectively).
35- In the PyModel directory, type the command: sudo python setup.py
36- install. Then you should not need to execute pymodel_path, but
37- You still need to type the command: source tpath (in Windows, just tpath)
43+ In the PyModel directory, type the command:
44+
45+ sudo python setup.py install
46+
47+ Alternatively, if you have pip installed you can type the command:
48+
49+ sudo pip install --no-download --build . PyModel
50+
51+ The pip utility maintains a registry of the packages it has installed,
52+ which makes it easy to review and uninstall packages.
53+
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)
3856in every session (terminal window).
3957
40- Most of the distribution is in the examples under PyModel/samples, and
41- in the documentation under PyModel/notes, www, and talks, and in the
42- README files in most directories. Installation does not install these
43- into any system directories; find them under the unpacked PyModel
44- distribution directory.
58+ Most of the distribution contents is in the examples under
59+ PyModel/samples, and in the documentation under PyModel/notes, www,
60+ and talks, and in the README files in most directories. Installation
61+ does not install these into any system directories; find them under
62+ the unpacked PyModel distribution directory. This is why we
63+ recommend the pip --noinstall and --build switches. The pip install
64+ command without these switches will not leave the unpacked
65+ distribution files available on your system.
4566
4667Revised May 2013
0 commit comments