Showing the changes to python (8 of 8 files). Show all
Unified · Split
| @@ -1,9 +1,8 @@ | |||
| 1 | include README COPYING VERSION | 1 | include README COPYING VERSION |
| 2 | include ext/*.h | 2 | include ext/*.h |
| 3 | include lib/generator.py | ||
| 4 | include lib/gen_pyobject.py | ||
| 3 | include gen/aubio-generated.h | 5 | include gen/aubio-generated.h |
| 4 | include generator.py | ||
| 5 | include gen_pyobject.py | ||
| 6 | include aubio/*.py | ||
| 7 | include demos/*.py | ||
| 8 | include tests/run_all_tests | 6 | include tests/run_all_tests |
| 9 | include tests/*.py | 7 | include tests/*.py |
| 8 | include demos/*.py | ||
| @@ -12,10 +12,27 @@ Compiling python aubio · 11 unmodified lines | |||
| 12 | 12 | ||
| 13 | You should be able to build the aubio python module out of the box: | 13 | You should be able to build the aubio python module out of the box: |
| 14 | 14 | ||
| 15 | $ ./build_osx | 15 | $ python setup.py build |
| 16 | 16 | ||
| 17 | This should work on linux based systems as well as recent versions of OS X | 17 | To use the python module without installing it, set PYTHONPATH: |
| 18 | (10.8.x). Let me know if you have issues on your platforms. | 18 | |
| 19 | $ export PYTHONPATH=$PYTHONPATH:$PWD/`ls -rtd build/lib.* | head -1`:$PWD/tests | ||
| 20 | |||
| 21 | And LD_LIBRARY_PATH: | ||
| 22 | |||
| 23 | $ export LD_LIBRARY_PATH=$PWD/../build/src | ||
| 24 | |||
| 25 | Or on macosx systems: | ||
| 26 | |||
| 27 | $ export DYLD_LIBRARY_PATH=$PWD/../build/src | ||
| 28 | |||
| 29 | The you should be able to run the tests: | ||
| 30 | |||
| 31 | $ ./tests/run_all_tests | ||
| 32 | |||
| 33 | And to try out the demos: | ||
| 34 | |||
| 35 | $ ./demos/demo_source.wav ~/test.wav | ||
| 19 | 36 | ||
| 20 | Additional tools | 37 | Additional tools |
| 21 | ---------------- | 38 | ---------------- |
| @@ -1,4 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | export PYTHONPATH=$PWD/`ls -rtd build/lib.* | head -1`:$PWD/tests:$PYTHONPATH | ||
| 4 | export LD_LIBRARY_PATH=$PWD/../build/src | ||
| @@ -1,4 +0,0 @@ | |||
| 1 | #! /bin/sh | ||
| 2 | |||
| 3 | export PYTHONPATH=$PWD/`ls -rtd build/lib.* | head -1`:$PWD/tests:$PYTHONPATH | ||
| 4 | export DYLD_LIBRARY_PATH=$PWD/../build/src | ||
Empty file added.
File renamed without changes.
File renamed without changes.
| @@ -28,7 +28,7 @@ output_path = 'gen' · 27 unmodified lines | |||
| 28 | generated_object_files = [] | 28 | generated_object_files = [] |
| 29 | 29 | ||
| 30 | if not os.path.isdir(output_path): | 30 | if not os.path.isdir(output_path): |
| 31 | from generator import generate_object_files | 31 | from lib.generator import generate_object_files |
| 32 | generated_object_files = generate_object_files(output_path) | 32 | generated_object_files = generate_object_files(output_path) |
| 33 | # define include dirs | 33 | # define include dirs |
| 34 | else: | 34 | else: |