|
1 | 1 | import sys, os
|
2 | 2 | from distutils.core import setup, Extension
|
3 | 3 |
|
| 4 | +script_dir = os.path.dirname(os.path.realpath( __file__ )) |
| 5 | +top_dir = os.path.dirname(script_dir) |
| 6 | +inc_dir = os.path.join(top_dir, "include") |
| 7 | +lib_dir = os.path.join(top_dir, "lib") |
| 8 | + |
4 | 9 | pycrm114_module = Extension('pycrm114',
|
5 | 10 | sources = ['pycrm114_module.c'],
|
6 |
| - include_dirs = ['../include'], |
7 |
| - library_dirs = ['/home/mundkur/proj/libcrm114/lib'], |
8 |
| - runtime_library_dirs = ['/home/mundkur/proj/libcrm114/lib'], |
| 11 | + include_dirs = [inc_dir], |
| 12 | + library_dirs = [lib_dir], |
| 13 | + runtime_library_dirs = [lib_dir], |
9 | 14 | libraries = ['tre', 'crm114'],
|
10 | 15 | extra_compile_args=['-Wall', '-g'])
|
11 | 16 |
|
12 | 17 | setup(name = 'pycrm114',
|
13 |
| - version = '0.1', |
| 18 | + version = '0.1.0', |
14 | 19 | description = 'Python interface to libcrm114',
|
| 20 | + author = 'Prashanth Mundkur', |
| 21 | + author_email = 'prashanth.mundkur at gmail.com', |
| 22 | + url = 'https://github.com/pmundkur/libcrm114', |
| 23 | + license = 'LGPL', |
15 | 24 | ext_modules = [pycrm114_module])
|
0 commit comments