File: INSTALL.txt

package info (click to toggle)
uncertainties 3.0.2.github-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 648 kB
  • sloc: python: 3,972; makefile: 93; sh: 19
file content (39 lines) | stat: -rw-r--r-- 1,083 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
* Some installation methods:

  python setup.py install

or, for an installation in the user Python library (no additional access
rights needed):

  python setup.py install --user

or, for an installation in a custom directory my_directory:

  python setup.py install --install-lib my_directory

or, if additional access rights are needed (Unix):

  sudo python setup.py install

You can also simply move the uncertainties/ or uncertainties-py*/
directory to a location that Python can import from (directory in
which scripts using uncertainties are run, etc.), and then rename it
uncertainties/ if necessary (with no Python version number). In this
case, if the Python 3 version is needed instead, the command

  2to3 -w .

must be run inside the uncertainties/ directory, so as to convert the
Python 2 version to the Python 3 version.

* The tests programs (test_*.py) are meant to be run through the Nose
testing framework.  This can be achieved for instance with a command
like

  nosetests -sv uncertainties/

or simply

  nosetests uncertainties/

(for a less verbose output).