Updating download.html page with Git information
[pythoncad.git] / INSTALL
bloba22131d71f860e61cfdbbc426f0fc6e5e7b73b86
1 Installation
2 ============
4 The installation of PythonCAD is a two-step process. First,
5 execute the setup.py script
7 $ python setup.py install
9 This command will install the files in the "Generic" and
10 "Interface" directories into the Python library directory.
11 You may need to be root to do this on your machine.
13 Next, copy the file "gtkpycad.py" into one of the directories
14 in your PATH. Commonly this will be "/usr/local/bin", or
15 "/usr/bin".
17 At this point you should be able to invoke the gtkpycad.py
18 file at a prompt:
20 $ gtkpycad.py
22 After a few seconds, the application should start.
24 Work has begun on making PythonCAD offer native language
25 support. Translation files are in the 'po/' subdirectory.
26 The '.po' file needs to be converted to a '.mo' file, a
27 job for the 'msgfmt' program. Once the '.mo' file has
28 been generated, it should be copied into the appropriate
29 'locale' directory for your system and the user environment
30 adjusted to access the correct locale. For the time being
31 the installation of these files requires much manual work;
32 as more translations appear it is hoped the installation
33 of the '.mo' files will become more automated.
35 Problems
36 ========
38 If something doesn't work, there are a couple of things to
39 check. For the sake of a few examples, pretend that the
40 python installation is in "/usr" and Python-2.2.X is installed,
41 so the site-packages directory is "/usr/lib/python2.2/site-packages",
42 and the python binary is "/usr/bin/python". Also pretend that
43 the "gtkpycad.py" file is copied into "/usr/bin".
45 Does "/usr/bin/gtkpycad.py" have the execute bits set? If
46 not, do a "chmod a+x /usr/bin/gtkpycad.py" to set these bits.