• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..04-Feb-2021-

csvn/H04-Feb-2021-3,3132,405

examples/H04-Feb-2021-476291

test/H04-Feb-2021-1,078750

READMEH A D25-Mar-20161.9 KiB5843

TODOH A D06-Oct-2008281 126

setup.pyH A D05-May-201317.9 KiB481350

README

1-------------
2BUILDING CSVN
3-------------
4
5Before building csvn, first verify that you have all the required software
6installed:
7
8  - Python 2.4 or later
9  - ctypes 1.0 or later (NOTE: ctypes is included by default with Python 2.5)
10  - Subversion 1.4.3 or later (including header files)
11  - APR and APR-util (including header files, and the
12                      apr-1-config / apr-config script)
13
14Next, checkout the latest version of ctypesgen from
15https://github.com/davidjamesca/ctypesgen to a "ctypesgen" subdirectory under
16the ctypes python bindings.
17
18For example:
19   $ svn co https://github.com/davidjamesca/ctypesgen/trunk ctypesgen
20or
21   $ git clone https://github.com/davidjamesca/ctypesgen
22
23Once you have all of the above software installed, you can build the
24ctypes Python bindings by running the following:
25
26python setup.py build --apr=<path> --apr-util=<path> --subversion=<path> \
27--ctypesgen=<path>
28
29If you're having problems getting the right path specified for any of the
30options above, or you'd like a full list of options which can be passed to
31the setup.py build command, feel free to run "python setup.py build --help".
32
33------------
34TESTING CSVN
35------------
36
37You can test the bindings by running test/run_all.py. The output of
38test/run_all.py should look something like this:
39
40   $ python test/run_all.py
41
42   ..........................
43   ----------------------------------------------------------------------
44   Ran 26 tests in 51.456s
45
46   OK
47
48---------------
49INSTALLING CSVN
50---------------
51
52One you have built the ctypes python bindings using "python setup.py build ..."
53you can then install the bindings using the "python setup.py install" command.
54This command, by default, will install the ctypes-python-bindings into your
55Python's site-packages but if you'd like to install elsewhere, feel free to run
56"python setup.py install --help" to get a list of options that will help you
57install the ctypes-python-bindings wherever and however you'd like.
58