forked from brandon-rhodes/pyephem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
71 lines (45 loc) · 2.03 KB
/
INSTALL
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
63
64
65
66
67
68
69
70
71
PyEphem
Installation Notes
PyEphem provides an "ephem" Python module that can perform many
astronomical computations. You can find the most recent version at
http://rhodesmill.org/pyephem/
The computation routines behind PyEphem are from the "XEphem" program
by Elwood Charles Downey ([email protected]), available
from http://www.clearskyinstitute.com/xephem/. See the COPYING file
in this directory for licensing information.
INSTALLING
If you have installed the standard Python package tool "pip", then you
can install PyEphem simply by typing:
pip install pyephem
Alternately, if you are on a Windows machine, look at the PyEphem web
site and you should find prominent links to an auto-install tool for
Windows.
If instead you want to build and install the module yourself, you only
need Python, your C compiler, and the standard Python distutils. You
can run the setup.py script in this directory to build or install the
package. Typically, entering
python setup.py install
(which you will probably need to do as root, unless you have Python
installed in your home directory) will both build and install the
module.
You can use PyEphem in your Python programs by calling:
import ephem
or perhaps something more like:
from ephem import Mars, Jupiter, Date
if you know what parts of "ephem" you want to use and you are tired of
putting "ephem." in front of all the names.
TESTING
Using the new "unittest" module in Python 2.7, you can run the PyEphem
test suite this way:
$ python -m unittest discover
On older versions of Python you can separately install the backported
"unittest2" module and use its "unit2" command line to run the tests:
$ unit2 discover ephem
DOCUMENTATION
See the "doc" directory inside of the module for documentation, or
visit the web site at http://rhodesmill.org/pyephem and try starting
with the "Quick Reference" to learn how PyEphem works.
AUTHOR
Brandon Craig Rhodes
http://rhodesmill.org/brandon