File: INSTALL

package info (click to toggle)
pyxmms 2.04-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 312 kB
  • ctags: 191
  • sloc: ansic: 1,340; python: 657; makefile: 99; sh: 57
file content (62 lines) | stat: -rw-r--r-- 2,280 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
INSTALLATION
------------

PyXMMS is packaged with Distutils (the current standard way to package Python
extensions), so its installation should be as simple as:
  - make this file's directory your shell's current directory
  - edit setup.cfg and make sure that it fits your needs (particularly the
    installation prefix)
  - a) 1) type:

            python ./setup.py build

          This step requires the development files for Python, glib and xmms
          (these include C header files). They are perhaps provided by
          packages named python-dev, libglib-dev, xmms-dev or something
          similar with a version number... This depends on you OS or Linux
          distribution.

          Note: the glib library required is the one that XMMS uses,
                which is currently 1.2 (XMMS does not use the GNOME 2 API at
                all at the time of this writing).

       2) then, as root:

            python ./setup.py install --record /path/to/foo

          where foo is a file of your choice which will contain the list of
          all files installed on your system by the preceding command. This
          will make uninstallation easy (you could ommit the
          "--record/path/to/foo", but uninstallation could not be automated,
          then).

    OR

    b) type, as root:

            python ./setup.py install --record /path/to/foo

       This will automatically build the package before installing it. The
       observations made in a) also apply here.


If this default installation is not what you wish, please read the Distutils
documentation. In Python 2.1 and above, it is included in the base Python
documentation and the chapter you'll need is most probably "Installing Python
Modules".


UNINSTALLATION
--------------

Provided you have followed the instructions given in the installation section,
you have a /path/to/foo file that contains all the files the installation
process put on your system. Great! All you have to do is:

   while read file; do rm -f "$file"; done < /path/to/foo

under a Bourne-compatible shell and with the appropriate privileges (maybe
root, depending on where you installed PyXMMS).

Note: this will handle file names with spaces correctly, unlike the simpler
"rm -f $(cat /path/to/foo)".