Skip to content
INSTALL 1.44 KiB
Newer Older
Christophe Benz's avatar
Christophe Benz committed
Weboob installation
===================

Christophe Benz's avatar
Christophe Benz committed
Like any Python package using setuptools, Weboob can be installed in install
mode or in development mode.
Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed
Install mode
------------
Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed
The install mode copies files to the Python system-wide packages directory
(for example /usr/lib/python2.5/site-packages for Python 2.5,
or /usr/local/lib/python2.6/dist-packages for Python 2.6)
# python setup.py install
Christophe Benz's avatar
Christophe Benz committed
Scripts are copied to /usr/bin.
Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed
Since there are many dependencies, when you install from sources,
you have to handle them by hand, according to your distribution.
If you still want to download them, you can uncomment the dependencies
in setup.py
Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed
To uninstall, remove the egg-info from the Python system-wide packages directory
and remove the weboob_dev line in easy-install.pth.
Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed
Development mode
----------------
Christophe Benz's avatar
Christophe Benz committed

Christophe Benz's avatar
Christophe Benz committed
The development mode doesn't copy files, but creates an egg-link
in the Python system-wide packages directory which points to the development
directory. It is useful for development when files often change.
Christophe Benz's avatar
Christophe Benz committed

# python setup.py develop
Christophe Benz's avatar
Christophe Benz committed

Scripts are copied to /usr/bin too.

Christophe Benz's avatar
Christophe Benz committed
To uninstall, remove the egg-link from the Python system-wide packages directory
and remove the weboob_dev line in easy-install.pth.

It is possible to install in a specific directory, and it does not need root privileges. For instance:

$ mkdir ~/mydir
$ PYTHONPATH=~/mydir python setup.py develop --install-dir ~/mydir

That way, the only altered directory is the one you chose earlier.