You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: python/README.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,20 @@ pip install strict-rfc3339
34
34
35
35
Depending on where Python is installed and/or what permissions the directory has, you may need to run the above `easy_install` and `pip` commands as root.
36
36
37
+
## Installation
38
+
39
+
To install Appdash into your Python path (i.e. so you can import it into your own code), simply change directory to `sourcegraph.com/sourcewgraph/appdash/python` and run the traditional `setup.py` script:
40
+
41
+
```
42
+
# Install Python-appdash:
43
+
cd $GOPATH/src/sourcegraph.com/sourcegraph/appdash/python
44
+
python setup.py install
45
+
```
46
+
47
+
Again, depending on where Python is installed and/or what permissions the directory has, you may need to run the above `setup.py` script as root.
48
+
49
+
To test that installation went well, in any directory _except that one_, you can launch an interactive Python interpreter and simply `import appdash`.
50
+
37
51
## Twisted Example
38
52
39
53
If all is well with your setup, you should be able to change directory to `sourcegraph.com/sourcewgraph/appdash/python` and run the Twisted example:
@@ -59,8 +73,3 @@ appdash serve
59
73
cd $GOPATH/src/sourcegraph.com/sourcegraph/appdash/python
60
74
./example_socket.py
61
75
```
62
-
63
-
## TODO
64
-
65
-
- Provide a way to easily install python' appdash module.
0 commit comments